org.apache.openejb.cdi
Class CdiPlugin

java.lang.Object
  extended by org.apache.webbeans.spi.plugins.AbstractOwbPlugin
      extended by org.apache.openejb.cdi.CdiPlugin
All Implemented Interfaces:
org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin, org.apache.webbeans.spi.plugins.OpenWebBeansJavaEEPlugin, org.apache.webbeans.spi.plugins.OpenWebBeansPlugin

public class CdiPlugin
extends org.apache.webbeans.spi.plugins.AbstractOwbPlugin
implements org.apache.webbeans.spi.plugins.OpenWebBeansJavaEEPlugin, org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin


Constructor Summary
CdiPlugin()
           
 
Method Summary
 void configureDeployments(List<BeanContext> ejbDeployments)
           
<T> javax.enterprise.inject.spi.Bean<T>
defineSessionBean(Class<T> clazz, javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotateTypeEvent)
           
 CdiAppContextsService getContexsServices()
           
 Object getSessionBeanProxy(javax.enterprise.inject.spi.Bean<?> bean, Class<?> interfce, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
           
<T> T
getSupportedService(Class<T> serviceClass)
           
 void isManagedBean(Class<?> clazz)
           
 boolean isSessionBean(Class<?> clazz)
           
 boolean isSingletonBean(Class<?> clazz)
           
 boolean isStatefulBean(Class<?> clazz)
           
 boolean isStatelessBean(Class<?> clazz)
           
 Method resolveBeanMethod(javax.enterprise.inject.spi.Bean<?> component, Method declaredMethod)
           
 Method resolveViewMethod(javax.enterprise.inject.spi.Bean<?> component, Method declaredMethod)
           
 void setClassLoader(ClassLoader classLoader)
           
 void setWebBeansContext(org.apache.webbeans.config.WebBeansContext webBeansContext)
           
 void shutDown()
           
 void startup()
           
 void stop()
           
 boolean supportService(Class<?> serviceClass)
           
 
Methods inherited from class org.apache.webbeans.spi.plugins.AbstractOwbPlugin
startUp, supportsJavaEeComponentInjections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
startUp, supportsJavaEeComponentInjections
 

Constructor Detail

CdiPlugin

public CdiPlugin()
Method Detail

setWebBeansContext

public void setWebBeansContext(org.apache.webbeans.config.WebBeansContext webBeansContext)

setClassLoader

public void setClassLoader(ClassLoader classLoader)

shutDown

public void shutDown()
Specified by:
shutDown in interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
Overrides:
shutDown in class org.apache.webbeans.spi.plugins.AbstractOwbPlugin

configureDeployments

public void configureDeployments(List<BeanContext> ejbDeployments)

getContexsServices

public CdiAppContextsService getContexsServices()

startup

public void startup()

stop

public void stop()
          throws OpenEJBException
Throws:
OpenEJBException

getSupportedService

public <T> T getSupportedService(Class<T> serviceClass)
Specified by:
getSupportedService in interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
Overrides:
getSupportedService in class org.apache.webbeans.spi.plugins.AbstractOwbPlugin

isManagedBean

public void isManagedBean(Class<?> clazz)
Specified by:
isManagedBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
Overrides:
isManagedBean in class org.apache.webbeans.spi.plugins.AbstractOwbPlugin

supportService

public boolean supportService(Class<?> serviceClass)
Specified by:
supportService in interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
Overrides:
supportService in class org.apache.webbeans.spi.plugins.AbstractOwbPlugin

getSessionBeanProxy

public Object getSessionBeanProxy(javax.enterprise.inject.spi.Bean<?> bean,
                                  Class<?> interfce,
                                  javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Specified by:
getSessionBeanProxy in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

isSessionBean

public boolean isSessionBean(Class<?> clazz)
Specified by:
isSessionBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

defineSessionBean

public <T> javax.enterprise.inject.spi.Bean<T> defineSessionBean(Class<T> clazz,
                                                                 javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotateTypeEvent)
Specified by:
defineSessionBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

isSingletonBean

public boolean isSingletonBean(Class<?> clazz)
Specified by:
isSingletonBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

isStatefulBean

public boolean isStatefulBean(Class<?> clazz)
Specified by:
isStatefulBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

isStatelessBean

public boolean isStatelessBean(Class<?> clazz)
Specified by:
isStatelessBean in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

resolveViewMethod

public Method resolveViewMethod(javax.enterprise.inject.spi.Bean<?> component,
                                Method declaredMethod)
Specified by:
resolveViewMethod in interface org.apache.webbeans.spi.plugins.OpenWebBeansEjbPlugin

resolveBeanMethod

public Method resolveBeanMethod(javax.enterprise.inject.spi.Bean<?> component,
                                Method declaredMethod)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.