org.plasma.common.naming
Class ServiceLocator
java.lang.Object
org.plasma.common.naming.ServiceLocator
public class ServiceLocator
- extends java.lang.Object
|
Field Summary |
protected static org.apache.commons.logging.Log |
log
|
|
Method Summary |
static ServiceLocator |
getInstance()
|
java.lang.Object |
getStub(java.lang.Class ejbInterfaceClass)
Get an ejb stub found with the supplied interface class in the local JNDI tree |
java.lang.Object |
getStub(java.lang.String ejbName)
Get an ejb stub found with the supplied name |
java.lang.Object |
getStub(java.lang.String ejbName,
java.lang.Class ejbInterfaceClass)
Deprecated. use getStub(Class ejbInterfaceClass) or getStub(String ejbName) instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static org.apache.commons.logging.Log log
getInstance
public static ServiceLocator getInstance()
throws javax.naming.NamingException
- Throws:
javax.naming.NamingException
getStub
public java.lang.Object getStub(java.lang.String ejbName,
java.lang.Class ejbInterfaceClass)
throws javax.naming.NamingException
- Deprecated. use getStub(Class ejbInterfaceClass) or getStub(String ejbName) instead
- Parameters:
ejbName - ejbInterfaceClass -
- Returns:
-
- Throws:
javax.naming.NamingException
getStub
public java.lang.Object getStub(java.lang.Class ejbInterfaceClass)
throws javax.naming.NamingException
- Get an ejb stub found with the supplied interface class in the local JNDI tree
- Parameters:
ejbInterfaceClass -
- Returns:
- An ejb stub implementing the supplied interface class.
- Throws:
javax.naming.NamingException
getStub
public java.lang.Object getStub(java.lang.String ejbName)
throws javax.naming.NamingException
- Get an ejb stub found with the supplied name
- Parameters:
ejbName -
- Returns:
- An ejb stub found at the supplied name
- Throws:
javax.naming.NamingException
Copyright © 2013. All Rights Reserved.