|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.api.RuntimeServiceLocator
public class RuntimeServiceLocator
A server implementation that use Nuxeo Runtime to lookup services.
This is used as the default server if no other is specified.
Constructor Summary | |
---|---|
RuntimeServiceLocator()
|
Method Summary | |
---|---|
void |
dispose()
Disposes this locator. |
void |
initialize(java.lang.String host,
int port,
java.util.Properties properties)
Initializes the service locator. |
java.lang.Object |
lookup(ServiceDescriptor svc)
Lookup the service described by the given service descriptor. |
java.lang.Object |
lookup(java.lang.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 RuntimeServiceLocator()
Method Detail |
---|
public void initialize(java.lang.String host, int port, java.util.Properties properties) throws java.lang.Exception
ServiceLocator
initialize
in interface ServiceLocator
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
java.lang.Exception
public void dispose()
ServiceLocator
dispose
in interface ServiceLocator
public java.lang.Object lookup(ServiceDescriptor svc) throws java.lang.Exception
ServiceLocator
lookup
in interface ServiceLocator
svc
- the service descriptor
java.lang.Exception
- if any error occurspublic java.lang.Object lookup(java.lang.String serviceId) throws java.lang.Exception
ServiceLocator
lookup
in interface ServiceLocator
serviceId
- the service ID
java.lang.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 |