org.apache.webbeans.ejb
Class EjbPlugin
java.lang.Object
org.apache.webbeans.spi.plugins.AbstractOwbPlugin
org.apache.webbeans.ejb.EjbPlugin
- All Implemented Interfaces:
- org.apache.openejb.assembler.classic.DeploymentListener, OpenWebBeansEjbPlugin, OpenWebBeansJavaEEPlugin, OpenWebBeansPlugin, OpenWebBeansWebPlugin
public class EjbPlugin
- extends AbstractOwbPlugin
- implements OpenWebBeansEjbPlugin, org.apache.openejb.assembler.classic.DeploymentListener
EJB related stuff.
EJB functionality depends on OpenEJB.
- Version:
- $Rev$ $Date$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EjbPlugin
public EjbPlugin()
shutDown
public void shutDown()
throws WebBeansConfigurationException
- Specified by:
shutDown in interface OpenWebBeansPlugin- Overrides:
shutDown in class AbstractOwbPlugin
- Throws:
WebBeansConfigurationException
getEjbInstance
public <T> T getEjbInstance(String intfName,
Class<T> intf)
throws Exception
- Throws:
Exception
startUp
public void startUp()
throws WebBeansConfigurationException
- Specified by:
startUp in interface OpenWebBeansPlugin- Overrides:
startUp in class AbstractOwbPlugin
- Throws:
WebBeansConfigurationException
afterApplicationCreated
public void afterApplicationCreated(org.apache.openejb.assembler.classic.AppInfo appInfo)
- OpenEJB call back method It is used to get the list of deployed
application and store the Stateless and Stateful pools localy.
- Specified by:
afterApplicationCreated in interface org.apache.openejb.assembler.classic.DeploymentListener
- Parameters:
appInfo - applications informations
beforeApplicationDestroyed
public void beforeApplicationDestroyed(org.apache.openejb.assembler.classic.AppInfo appInfo)
- OpenEJB callback method Not used.
- Specified by:
beforeApplicationDestroyed in interface org.apache.openejb.assembler.classic.DeploymentListener
defineSessionBean
public <T> Bean<T> defineSessionBean(Class<T> clazz,
ProcessAnnotatedType<T> processAnnotatedTypeEvent)
- Specified by:
defineSessionBean in interface OpenWebBeansEjbPlugin
isSessionBean
public boolean isSessionBean(Class<?> clazz)
- Specified by:
isSessionBean in interface OpenWebBeansEjbPlugin
isManagedBean
public void isManagedBean(Class<?> clazz)
throws WebBeansConfigurationException
- Specified by:
isManagedBean in interface OpenWebBeansPlugin- Overrides:
isManagedBean in class AbstractOwbPlugin
- Throws:
WebBeansConfigurationException
isSingletonBean
public boolean isSingletonBean(Class<?> clazz)
- Specified by:
isSingletonBean in interface OpenWebBeansEjbPlugin
isStatefulBean
public boolean isStatefulBean(Class<?> clazz)
- Specified by:
isStatefulBean in interface OpenWebBeansEjbPlugin
isStatelessBean
public boolean isStatelessBean(Class<?> clazz)
- Specified by:
isStatelessBean in interface OpenWebBeansEjbPlugin
getSessionBeanProxy
public Object getSessionBeanProxy(Bean<?> bean,
Class<?> iface,
CreationalContext<?> creationalContext)
- Specified by:
getSessionBeanProxy in interface OpenWebBeansEjbPlugin
getSupportedService
public <T> T getSupportedService(Class<T> serviceClass)
- Specified by:
getSupportedService in interface OpenWebBeansPlugin- Overrides:
getSupportedService in class AbstractOwbPlugin
supportService
public boolean supportService(Class<?> serviceClass)
- Specified by:
supportService in interface OpenWebBeansPlugin- Overrides:
supportService in class AbstractOwbPlugin
createStrategy
public org.apache.openejb.assembler.classic.JndiBuilder.JndiNameStrategy createStrategy(org.apache.openejb.assembler.classic.AppInfo appInfo,
List<org.apache.openejb.DeploymentInfo> deployments,
org.apache.openejb.DeploymentInfo deployment)
throws org.apache.openejb.OpenEJBException
- Throws:
org.apache.openejb.OpenEJBException
getEjbBindings
public Map<String,EJBInstanceProxy<?>> getEjbBindings(org.apache.openejb.core.CoreDeploymentInfo deployment)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.