|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.api.JndiServiceLocator
public class JndiServiceLocator
| Constructor Summary | |
|---|---|
JndiServiceLocator()
|
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes this locator. |
InitialContext |
getContext()
|
void |
initialize(String host,
int port,
Properties properties)
Initializes and creates the JNDI initial context. |
Object |
lookup(ServiceDescriptor sd)
Lookup the service described by the given service descriptor. |
Object |
lookup(String serviceId)
Lookup the service given its ID. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JndiServiceLocator()
| Method Detail |
|---|
public void initialize(String host,
int port,
Properties properties)
throws Exception
initialize in interface ServiceLocatorhost - 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
Exceptionpublic void dispose()
ServiceLocator
dispose in interface ServiceLocatorpublic InitialContext getContext()
public Object lookup(ServiceDescriptor sd)
throws Exception
ServiceLocator
lookup in interface ServiceLocatorsd - the service descriptor
Exception - if any error occurs
public Object lookup(String serviceId)
throws Exception
ServiceLocator
lookup in interface ServiceLocatorserviceId - the service ID
Exception - if any error occurs
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||