org.openfjord.business
Class EJBHomeFactory

java.lang.Object
  |
  +--org.openfjord.business.EJBHomeFactory

public class EJBHomeFactory
extends java.lang.Object

This class caches the local home interface references


Method Summary
 void clear()
          empties the home reference cache.
static EJBHomeFactory getFactory()
          singleton method to retrieve a reference to the home factory
 javax.ejb.EJBHome lookupHome(java.lang.Class homeClass, java.lang.String jndiName)
          lookup for a remote home reference
 javax.ejb.EJBLocalHome lookupLocalHome(java.lang.Class homeClass, java.lang.String jndiName)
          lookup for a local home reference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static EJBHomeFactory getFactory()
                                 throws EJBHomeFactoryException
singleton method to retrieve a reference to the home factory

Returns:
instance of the homefactory
Throws:
EJBHomeFactoryException - if an NamingE

lookupLocalHome

public javax.ejb.EJBLocalHome lookupLocalHome(java.lang.Class homeClass,
                                              java.lang.String jndiName)
                                       throws EJBHomeFactoryException
lookup for a local home reference

Parameters:
homeClass - home class of the bean
jndiName - of the bean
Returns:
reference to the local home object
Throws:
EJBHomeFactoryException - if a ClassCastException or an NamingException occurs

lookupHome

public javax.ejb.EJBHome lookupHome(java.lang.Class homeClass,
                                    java.lang.String jndiName)
                             throws EJBHomeFactoryException
lookup for a remote home reference

Parameters:
homeClass - class of the remote interface
jndiName - of the bean
Returns:
reference to the remote home object
Throws:
EJBHomeFactoryException - if a ClassCastException or an NamingException occurs

clear

public void clear()
empties the home reference cache.



openFJORD Copyright © 2003 University of Muenster.