|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.ejb.local.LocalHomeFactoryImpl
The implementation of the Local Home Factory
The following list summarizes the key entites involved in using this service
HomeFactoryConfiguration
LocalHomeFactory
HomeFactoryConfiguration
,
LocalHomeFactory
,
EnterpriseBeanConfiguration
Field Summary | |
private HomeFactoryConfiguration |
configuration
|
private Map |
ejbMap
A private Map object used to store the lookup details of
EJBs associated with this home factory component |
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 | |
LocalHomeFactoryImpl()
|
Method Summary | |
protected void |
cacheHome(String logicalName,
javax.ejb.EJBLocalHome 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 configuration. |
javax.ejb.EJBLocalHome |
lookup(String logicalName)
Handles JNDI lookups for locally deployed EJBs using the default context properties declared in the associated configuration. |
javax.ejb.EJBLocalHome |
lookup(String logicalName,
Context context)
Handles JNDI lookups for locally deployed EJBs using a context object specified at run-time. |
javax.ejb.EJBLocalHome |
lookup(String logicalName,
String principal,
String credentials)
Handles JNDI lookups for locally 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 HomeFactoryConfiguration 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 LocalHomeFactoryImpl()
Method Detail |
public javax.ejb.EJBLocalHome lookup(String logicalName) throws HomeFactoryException
LocalHomeFactory
Handles JNDI lookups for locally deployed EJBs using the default context properties declared in the associated configuration.
lookup
in interface LocalHomeFactory
logicalName
- String representation of the EJB's logical name
in JNDI
HomeFactoryException
- Wraps any checked exception that occurs
during the JNDI lookupLocalHomeFactory
public javax.ejb.EJBLocalHome lookup(String logicalName, String principal, String credentials) throws HomeFactoryException
LocalHomeFactory
Handles JNDI lookups for locally 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 LocalHomeFactory
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 lookupLocalHomeFactory
public javax.ejb.EJBLocalHome lookup(String logicalName, Context context) throws HomeFactoryException
LocalHomeFactory
Handles JNDI lookups for locally deployed EJBs using a context object specified at run-time.
lookup
in interface LocalHomeFactory
logicalName
- 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 lookupLocalHomeFactory
public void configure(ComponentConfiguration configuration)
configure
in interface Configurable
configuration
- A HomeFactoryConfiguration instancepublic EnterpriseBeanConfiguration getEJBDetails(String logicalName)
LocalHomeFactory
Utility method for retrieving an EJB's configuration information as declared in the associated configuration.
getEJBDetails
in interface LocalHomeFactory
logicalName
- String representation of the EJB's logical name
in JNDI
LocalHomeFactory
protected void cacheHome(String logicalName, javax.ejb.EJBLocalHome 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 locally deployed EJB
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |