|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pt.jcodeutil.core.ejb.EJBHomeFactory
Title: EJB Home Factory Description: Singleton that performs lookup and caches EJB homes for reuse and performance purposes.
Method Summary | |
static EJBHomeFactory |
getInstance()
Gets the singleton instance |
javax.ejb.EJBHome |
lookup(java.lang.Class homeInterfaceClass)
Looks up the EJB Home class in cache and if doesn't exist, looks up with JNDI name, getting the JNDI name from the full class name. |
javax.ejb.EJBHome |
lookup(java.lang.Class homeInterfaceClass,
java.util.Hashtable htEnv)
Looks up the EJB Home class in cache and if doesn't exist, looks up with JNDI name, getting the JNDI name from the full class name. |
javax.ejb.EJBHome |
lookup(java.lang.String jndiName,
java.lang.Class homeInterfaceClass)
Looks up the EJB Home class in cache and if doesn't exist, looks up with JNDI name. |
javax.ejb.EJBHome |
lookup(java.lang.String jndiName,
java.lang.Class homeInterfaceClass,
java.util.Hashtable htEnv)
Looks up the EJB Home class in cache and if doesn't exist, looks up with JNDI name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static EJBHomeFactory getInstance() throws javax.naming.NamingException
javax.naming.NamingException
- from InitialContext creationpublic javax.ejb.EJBHome lookup(java.lang.String jndiName, java.lang.Class homeInterfaceClass, java.util.Hashtable htEnv) throws javax.naming.NamingException
jndiName
- the JNDI / total EJB-REF name where the EJB is binded to.homeInterfaceClass
- the class to look up in cache.
Must extend EJBHome interface and cannot be exactly the EJBHome class.htEnv
- Properties or Hashtable for Context creation, null if default.javax.naming.NamingException
- from JNDI lookup.public javax.ejb.EJBHome lookup(java.lang.String jndiName, java.lang.Class homeInterfaceClass) throws javax.naming.NamingException
jndiName
- the JNDI / total EJB-REF name where the EJB is binded to.homeInterfaceClass
- the class to look up in cache. Can not be EJBHome.class.htEnv
- Properties or Hashtable for Context creation, null if default.javax.naming.NamingException
- from JNDI lookup.public javax.ejb.EJBHome lookup(java.lang.Class homeInterfaceClass, java.util.Hashtable htEnv) throws javax.naming.NamingException
homeInterfaceClass
- the class to look up in cache. Can not be EJBHome.class.javax.naming.NamingException
- from JNDI lookup.public javax.ejb.EJBHome lookup(java.lang.Class homeInterfaceClass) throws javax.naming.NamingException
homeInterfaceClass
- the class to look up in cache. Can not be EJBHome.class.javax.naming.NamingException
- from JNDI lookup.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |