org.nuxeo.runtime.api
Class JBossServiceLocator
java.lang.Object
org.nuxeo.runtime.api.JndiServiceLocator
org.nuxeo.runtime.api.JBossServiceLocator
- All Implemented Interfaces:
- Serializable, ServiceLocator
public class JBossServiceLocator
- extends JndiServiceLocator
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
JBossServiceLocator
public JBossServiceLocator()
initialize
public void initialize(String host,
int port,
Properties properties)
throws Exception
- Description copied from class:
JndiServiceLocator
- Initializes and creates the JNDI initial context.
- Specified by:
initialize
in interface ServiceLocator
- Overrides:
initialize
in class JndiServiceLocator
- Parameters:
host
- the host where the lookup will be done. The host is optional
and may be null if the services are looked up in the current
JVMport
- the port of the host to be used to lookup.properties
- the properties are implementation dependent Properties
may be null if no properties are required. The port is
meaningful only if the host was specified
- Throws:
Exception
lookup
public Object lookup(ServiceDescriptor sd)
throws Exception
- Description copied from interface:
ServiceLocator
- Lookup the service described by the given service descriptor.
- Specified by:
lookup
in interface ServiceLocator
- Overrides:
lookup
in class JndiServiceLocator
- Parameters:
sd
- the service descriptor
- Returns:
- the service instance or null if no such service was found
- Throws:
Exception
- if any error occurs
getDefaultSuffix
public static String getDefaultSuffix()
Copyright © 2011 Nuxeo SAS. All Rights Reserved.