org.apache.webbeans.spi.plugins
Interface OpenWebBeansEjbPlugin

All Superinterfaces:
OpenWebBeansPlugin

public interface OpenWebBeansEjbPlugin
extends OpenWebBeansPlugin

Session bean related plugin contract.

Version:
$Rev$ $Date$

Method Summary
<T> javax.enterprise.inject.spi.Bean<T>
defineSessionBean(Class<T> clazz, javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotateTypeEvent)
          Configures session bean and adds it into the container.
 Object getSessionBeanProxy(javax.enterprise.inject.spi.Bean<?> bean, Class<?> iface, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
          Returns session bean proxy.
 boolean isSessionBean(Class<?> clazz)
          Returns true if class is an session bean class false otherwise
 boolean isSingletonBean(Class<?> clazz)
          Returns true if given class is singleton session bean, false otherwise.
 boolean isStatefulBean(Class<?> clazz)
          Returns true if given class is stateful session bean, false otherwise.
 boolean isStatelessBean(Class<?> clazz)
          Returns true if given class is stateless session bean, false otherwise.
 Method resolveViewMethod(javax.enterprise.inject.spi.Bean<?> component, Method declaredMethod)
           
 
Methods inherited from interface org.apache.webbeans.spi.plugins.OpenWebBeansPlugin
getSupportedService, isManagedBean, shutDown, startUp, supportService, supportsJavaEeComponentInjections
 

Method Detail

isSessionBean

boolean isSessionBean(Class<?> clazz)
Returns true if class is an session bean class false otherwise

Parameters:
clazz - class definition
Returns:
true if class is an ejb class false otherwise

defineSessionBean

<T> javax.enterprise.inject.spi.Bean<T> defineSessionBean(Class<T> clazz,
                                                          javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotateTypeEvent)
Configures session bean and adds it into the container.

Parameters:
clazz - session bean class
processAnnotateTypeEvent - process annotated type event

isSingletonBean

boolean isSingletonBean(Class<?> clazz)
Returns true if given class is singleton session bean, false otherwise.

Parameters:
clazz - session bean class
Returns:
true if given class is singleton session bean, false otherwise

isStatelessBean

boolean isStatelessBean(Class<?> clazz)
Returns true if given class is stateless session bean, false otherwise.

Parameters:
clazz - session bean class
Returns:
true if given class is singleton session bean, false otherwise

isStatefulBean

boolean isStatefulBean(Class<?> clazz)
Returns true if given class is stateful session bean, false otherwise.

Parameters:
clazz - session bean class
Returns:
true if given class is singleton session bean, false otherwise

getSessionBeanProxy

Object getSessionBeanProxy(javax.enterprise.inject.spi.Bean<?> bean,
                           Class<?> iface,
                           javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Returns session bean proxy.

Parameters:
bean - session bean
proxy - interface
Returns:
session bean proxy

resolveViewMethod

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


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