|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.ejb.remote.RemoteHomeFactoryImpl
The functional implementation of the Remote Home Factory functional interface.
The following list summarizes the key entites involved in using this servive
RemoteHomeFactoryConfiguration
RemoteHomeFactory
RemoteHomeFactory
,
RemoteHomeFactoryConfiguration
,
EnterpriseBeanConfiguration
,
HomeFactoryConfiguration
Field Summary | |
private RemoteHomeFactoryConfiguration |
configuration
|
private Map |
ejbMap
A private Map object used to store the lookup details of
EJBs associated with this home factory component |
private static String |
EMPTY_STRING
Used for performing comparisons/null-checks on configuration data |
private Map |
homeCache
A private Map object used for caching the home interfaces of
EJBs associated with this home factory component |
private org.apache.commons.logging.Log |
log
Provides a handle to Apache-commons logger |
Constructor Summary | |
RemoteHomeFactoryImpl()
|
Method Summary | |
protected void |
cacheHome(String logicalName,
javax.ejb.EJBHome ejbHome)
Associates the home interface object of a locally deployed EJB with a logical name (usually its JNDI name), and caches it to decrease the cost of subsequent JNDI lookups |
void |
configure(ComponentConfiguration configuration)
Configures the component. |
EnterpriseBeanConfiguration |
getEJBDetails(String logicalName)
Utility method for retrieving an EJB's configuration information as declared in the associated XML configuration. |
javax.ejb.EJBHome |
lookup(String logicalName)
Handles JNDI lookups for remotely deployed EJBs using the default context properties declared in the associated configuration. |
javax.ejb.EJBHome |
lookup(String logicalName,
Context context)
Handles JNDI lookups for remotely deployed EJBs using a context object specified at run-time. |
javax.ejb.EJBHome |
lookup(String logicalName,
String principal,
String credentials)
Handles JNDI lookups for remotely deployed EJBs using the default context properties declared in the associated configuration with the exception of the security principal and credentials which are passed at run-time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
private static final String EMPTY_STRING
private RemoteHomeFactoryConfiguration configuration
private Map ejbMap
Map
object used to store the lookup details of
EJBs associated with this home factory component
private Map homeCache
Map
object used for caching the home interfaces of
EJBs associated with this home factory component
Constructor Detail |
public RemoteHomeFactoryImpl()
Method Detail |
public javax.ejb.EJBHome lookup(String logicalName) throws HomeFactoryException
RemoteHomeFactory
Handles JNDI lookups for remotely deployed EJBs using the default context properties declared in the associated configuration.
lookup
in interface RemoteHomeFactory
logicalName
- String representation of the EJB's logical name
in JNDI
HomeFactoryException
- Wraps any checked exception that occurs
during the JNDI lookupRemoteHomeFactory
public javax.ejb.EJBHome lookup(String logicalName, String principal, String credentials) throws HomeFactoryException
RemoteHomeFactory
Handles JNDI lookups for remotely deployed EJBs using the default context properties declared in the associated configuration with the exception of the security principal and credentials which are passed at run-time.
lookup
in interface RemoteHomeFactory
logicalName
- a String representation of the EJB's logical name
in JNDIprincipal
- String representation of the security principalcredentials
- The credentials associated with the security principal
in String format
HomeFactoryException
- Wraps any checked exception that occurs
during the JNDI lookupRemoteHomeFactory
public javax.ejb.EJBHome lookup(String logicalName, Context context) throws HomeFactoryException
RemoteHomeFactory
Handles JNDI lookups for remotely deployed EJBs using a context object specified at run-time.
lookup
in interface RemoteHomeFactory
logicalName
- a String representation of the EJB's logical name
in JNDIcontext
- A javax.naming.Context
object to be used
in performing the JNDI lookup
HomeFactoryException
- Wraps any checked exception that occurs
during the JNDI lookupRemoteHomeFactory
public void configure(ComponentConfiguration configuration)
configure
in interface Configurable
configuration
- A HomeFactoryConfiguration instancepublic EnterpriseBeanConfiguration getEJBDetails(String logicalName)
RemoteHomeFactory
Utility method for retrieving an EJB's configuration information as declared in the associated XML configuration.
getEJBDetails
in interface RemoteHomeFactory
logicalName
- String representation of the EJB's logical name
in JNDI
RemoteHomeFactory
protected void cacheHome(String logicalName, javax.ejb.EJBHome ejbHome)
Associates the home interface object of a locally deployed EJB with a logical name (usually its JNDI name), and caches it to decrease the cost of subsequent JNDI lookups
logicalName
- a String representation of the EJB's logical name
in JNDIejbHome
- the home interface object of a remotely deployed EJB
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |