org.apache.tuscany.sca.host.ejb
Class ExtensibleEJBHost

java.lang.Object
  extended by org.apache.tuscany.sca.host.ejb.ExtensibleEJBHost
All Implemented Interfaces:
EJBHost

public class ExtensibleEJBHost
extends java.lang.Object
implements EJBHost

Default implementation of an extensible EJB host.


Constructor Summary
ExtensibleEJBHost(EJBHostExtensionPoint ejbHosts)
           
 
Method Summary
 void addSessionBean(java.lang.String ejbName, EJBSessionBean ejbClass)
          Add an EJB session bean.
 EJBSessionBean getSessionBean(java.lang.String ejbName)
          Returns the EJB session bean descriptor registered under the given EJB name.
 EJBSessionBean removeSessionBean(java.lang.String ejbName)
          Remove an EJB session bean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensibleEJBHost

public ExtensibleEJBHost(EJBHostExtensionPoint ejbHosts)
Method Detail

addSessionBean

public void addSessionBean(java.lang.String ejbName,
                           EJBSessionBean ejbClass)
                    throws EJBRegistrationException
Description copied from interface: EJBHost
Add an EJB session bean.

Specified by:
addSessionBean in interface EJBHost
Parameters:
ejbName - the EJB name
ejbClass - the EJB session bean descriptor
Throws:
EJBRegistrationException

removeSessionBean

public EJBSessionBean removeSessionBean(java.lang.String ejbName)
                                 throws EJBRegistrationException
Description copied from interface: EJBHost
Remove an EJB session bean.

Specified by:
removeSessionBean in interface EJBHost
Parameters:
ejbName - the EJB name
Returns:
the EJB session bean descriptor that was registered under that name
Throws:
EJBRegistrationException

getSessionBean

public EJBSessionBean getSessionBean(java.lang.String ejbName)
                              throws EJBRegistrationException
Description copied from interface: EJBHost
Returns the EJB session bean descriptor registered under the given EJB name.

Specified by:
getSessionBean in interface EJBHost
Parameters:
ejbName - the EJB name
Returns:
the EJB session bean descriptor
Throws:
EJBRegistrationException