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> Bean<T>
defineSessionBean(Class<T> clazz, ProcessAnnotatedType<T> processAnnotateTypeEvent)
          Configures session bean and adds it into the container.
 Object getSessionBeanProxy(Bean<?> bean, Class<?> iface, 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.
 
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> Bean<T> defineSessionBean(Class<T> clazz,
                              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(Bean<?> bean,
                           Class<?> iface,
                           CreationalContext<?> creationalContext)
Returns session bean proxy.

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


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