org.apache.webbeans.config
Class EJBWebBeansConfigurator
java.lang.Object
org.apache.webbeans.config.EJBWebBeansConfigurator
public final class EJBWebBeansConfigurator
- extends Object
|
Method Summary |
static
<T> javax.enterprise.inject.spi.Bean<T> |
|
defineEjbBean(Class<T> clazz,
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent,
WebBeansContext webBeansContext)
Returns ejb bean. |
static boolean |
isSessionBean(Class<?> clazz,
WebBeansContext webBeansContext)
Returns true if given class is an deployed ejb bean class, false otherwise. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isSessionBean
public static boolean isSessionBean(Class<?> clazz,
WebBeansContext webBeansContext)
throws WebBeansConfigurationException
- Returns true if given class is an deployed ejb bean class, false otherwise.
- Parameters:
clazz - bean classwebBeansContext -
- Returns:
- true if given class is an deployed ejb bean class
- Throws:
WebBeansConfigurationException - if any exception occurs
defineEjbBean
public static <T> javax.enterprise.inject.spi.Bean<T> defineEjbBean(Class<T> clazz,
javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotatedTypeEvent,
WebBeansContext webBeansContext)
- Returns ejb bean.
- Type Parameters:
T - bean class info- Parameters:
webBeansContext - clazz - bean class
- Returns:
- ejb bean
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.