| java.lang.Object org.apache.openejb.client.ServiceLocator org.apache.openejb.client.GenericServiceLocator
GenericServiceLocator | public class GenericServiceLocator extends ServiceLocator (Code) | | version: $Rev: 607077 $ $Date: 2007-12-27 06:55:23 -0800 $ |
Method Summary | |
public Object | lookup(String name) | public T | lookup(Class<T> type) | public T | lookup(String prefix, Class<T> type) | public T | lookup(Class<T> type, Class<B> ejbClass) Usable with JNDI name formats comprised of the interfaceClass and ejbClass
For variation, the interface class is the prefix and the ejb class is the
suffix. |
lookup | public T lookup(Class<T> type)(Code) | | Usable with JNDI name formats ending in the full class name of the interface
Such as:
- {interfaceClass}
Or with commonPrefix (supplied in constructor) such as:
- {moduleId}/{interfaceClass}
- ejb/{moduleId}/{interfaceClass}
Parameters: type - the interfaceClass (T) lookup(type.getName()) |
lookup | public T lookup(String prefix, Class<T> type)(Code) | | Usable with JNDI name formats including a varying prefix such as ejbName or deploymentID
and ending in the full class name of the interface
Such as:
- {ejbName}/{interfaceClass}
- {deploymentId}/{interfaceClass}
Or with commonPrefix (supplied in constructor) such as:
- {moduleId}/{ejbName}/{interfaceClass}
- ejb/{moduleId}/{deploymentId}/{interfaceClass}
Parameters: prefix - such as ejbName or deploymentId Parameters: type - the interfaceClass (T) lookup(prefix + "/" + type.getName()) |
lookup | public T lookup(Class<T> type, Class<B> ejbClass)(Code) | | Usable with JNDI name formats comprised of the interfaceClass and ejbClass
For variation, the interface class is the prefix and the ejb class is the
suffix. This is neat as the the prefix (the interface class name) becomes
a jndi context with one binding in it for each implementing ejb class.
Works with:
- {interfaceClass}/{ejbClass}
Or with commonPrefix (supplied in constructor) such as:
- {moduleId}/{interfaceClass}/{ejbClass}
- ejb/{moduleId}/{interfaceClass}/{ejbClass}
Parameters: type - the interfaceClass Parameters: ejbClass - the ejbClass (T) lookup(type.getName() + "/" + ejbClass.getName()) |
|
|