com.tzavellas.dyndelegate
Class SimpleEJBHomeFactory

java.lang.Object
  extended by com.tzavellas.dyndelegate.SimpleEJBHomeFactory
All Implemented Interfaces:
EJBHomeFactory

public class SimpleEJBHomeFactory
extends Object
implements EJBHomeFactory

A non-caching implementation of the EJBHomeFactory interface.

Author:
Spiros Tzavellas
See Also:
EJBHomeFactory

Constructor Summary
SimpleEJBHomeFactory()
           
 
Method Summary
 javax.ejb.EJBLocalHome lookupLocal(String jndiName, Class homeInterface)
          Return the EJBLocalHome bound at the specified JNDI name.
 javax.ejb.EJBHome lookupRemote(String jndiName, Class homeInterface)
          Return the EJBHome bound at the specified JNDI name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleEJBHomeFactory

public SimpleEJBHomeFactory()
Method Detail

lookupRemote

public javax.ejb.EJBHome lookupRemote(String jndiName,
                                      Class homeInterface)
Return the EJBHome bound at the specified JNDI name.

Specified by:
lookupRemote in interface EJBHomeFactory
Parameters:
jndiName - the JNDI name where the remote interface is bound
homeInterface - the class of the remote home interface.
Returns:
the remote home interface

lookupLocal

public javax.ejb.EJBLocalHome lookupLocal(String jndiName,
                                          Class homeInterface)
Return the EJBLocalHome bound at the specified JNDI name.

Specified by:
lookupLocal in interface EJBHomeFactory
Parameters:
jndiName - the JNDI name where the local interface is bound
homeInterface - the class of the local home interface.
Returns:
the local home interface


Copyright © 2005-2009 spiros.blog(). All Rights Reserved.