Package org.apache.webbeans.config
Class EJBWebBeansConfigurator
- java.lang.Object
-
- org.apache.webbeans.config.EJBWebBeansConfigurator
-
public final class EJBWebBeansConfigurator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> jakarta.enterprise.inject.spi.Bean<T>defineEjbBean(Class<T> clazz, jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, WebBeansContext webBeansContext)Returns ejb bean.static booleanisSessionBean(Class<?> clazz, WebBeansContext webBeansContext)Returns true if given class is an deployed ejb bean class, false otherwise.
-
-
-
Method Detail
-
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> jakarta.enterprise.inject.spi.Bean<T> defineEjbBean(Class<T> clazz, jakarta.enterprise.inject.spi.AnnotatedType<T> annotatedType, jakarta.enterprise.inject.spi.BeanAttributes<T> attributes, WebBeansContext webBeansContext)
Returns ejb bean.- Type Parameters:
T- bean class info- Parameters:
webBeansContext-clazz- bean class- Returns:
- ejb bean
-
-