org.nuxeo.runtime.api
Class JBossServiceLocator
java.lang.Object
org.nuxeo.runtime.api.JndiServiceLocator
org.nuxeo.runtime.api.JBossServiceLocator
- All Implemented Interfaces:
- java.io.Serializable, ServiceLocator
public class JBossServiceLocator
- extends JndiServiceLocator
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
Method Summary |
static java.lang.String |
getDefaultSuffix()
|
void |
initialize(java.lang.String host,
int port,
java.util.Properties properties)
Initializes and creates the JNDI initial context. |
java.lang.Object |
lookup(ServiceDescriptor sd)
Lookup the service described by the given service descriptor. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossServiceLocator
public JBossServiceLocator()
initialize
public void initialize(java.lang.String host,
int port,
java.util.Properties properties)
throws java.lang.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:
java.lang.Exception
lookup
public java.lang.Object lookup(ServiceDescriptor sd)
throws java.lang.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:
java.lang.Exception
- if any error occurs
getDefaultSuffix
public static java.lang.String getDefaultSuffix()
Copyright © 2010 Nuxeo SAS. All Rights Reserved.