org.plasma.common.naming
Class ServiceLocator

java.lang.Object
  extended by org.plasma.common.naming.ServiceLocator

public class ServiceLocator
extends Object


Field Summary
protected static org.apache.commons.logging.Log log
           
 
Method Summary
static ServiceLocator getInstance()
           
 Object getStub(Class ejbInterfaceClass)
          Get an ejb stub found with the supplied interface class in the local JNDI tree
 Object getStub(String ejbName)
          Get an ejb stub found with the supplied name
 Object getStub(String ejbName, 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
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Method Detail

getInstance

public static ServiceLocator getInstance()
                                  throws NamingException
Throws:
NamingException

getStub

public Object getStub(String ejbName,
                      Class ejbInterfaceClass)
               throws NamingException
Deprecated. use getStub(Class ejbInterfaceClass) or getStub(String ejbName) instead

Parameters:
ejbName -
ejbInterfaceClass -
Returns:
Throws:
NamingException

getStub

public Object getStub(Class ejbInterfaceClass)
               throws 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:
NamingException

getStub

public Object getStub(String ejbName)
               throws NamingException
Get an ejb stub found with the supplied name

Parameters:
ejbName -
Returns:
An ejb stub found at the supplied name
Throws:
NamingException


Copyright © 2013. All rights reserved.