Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.api
Class JBossServiceLocator

java.lang.Object
  extended by org.nuxeo.runtime.api.JndiServiceLocator
      extended by org.nuxeo.runtime.api.JBossServiceLocator
All Implemented Interfaces:
Serializable, ServiceLocator

public class JBossServiceLocator
extends JndiServiceLocator

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
JBossServiceLocator()
           
 
Method Summary
static String getDefaultSuffix()
           
 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.
 
Methods inherited from class org.nuxeo.runtime.api.JndiServiceLocator
dispose, getContext, lookup
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossServiceLocator

public JBossServiceLocator()
Method Detail

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 JVM
port - 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()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.