com.tzavellas.dyndelegate
Interface EJBHomeFactory

All Known Implementing Classes:
SimpleEJBHomeFactory

public interface EJBHomeFactory

A strategy interface for EJBHome factories.

Author:
Spiros Tzavellas
See Also:
Home Factory design pattern, 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.
 

Method Detail

lookupRemote

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

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

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

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.