public interface OpenWebBeansEjbPlugin extends OpenWebBeansPlugin
Modifier and Type | Method and Description |
---|---|
<T> javax.enterprise.inject.spi.Bean<T> |
defineNewSessionBean(Class<T> clazz) |
<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 |
isNewSessionBean(Class<?> clazz)
return true is clazz is an impl class or business interface of an EJB
|
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) |
getSupportedService, isManagedBean, shutDown, startUp, supportService, supportsJavaEeComponentInjections
boolean isSessionBean(Class<?> clazz)
clazz
- class definitionboolean isNewSessionBean(Class<?> clazz)
clazz
- class definition<T> javax.enterprise.inject.spi.Bean<T> defineSessionBean(Class<T> clazz, javax.enterprise.inject.spi.ProcessAnnotatedType<T> processAnnotateTypeEvent)
clazz
- session bean classprocessAnnotateTypeEvent
- process annotated type event<T> javax.enterprise.inject.spi.Bean<T> defineNewSessionBean(Class<T> clazz)
boolean isSingletonBean(Class<?> clazz)
clazz
- session bean classboolean isStatelessBean(Class<?> clazz)
clazz
- session bean classboolean isStatefulBean(Class<?> clazz)
clazz
- session bean classObject getSessionBeanProxy(javax.enterprise.inject.spi.Bean<?> bean, Class<?> iface, javax.enterprise.context.spi.CreationalContext<?> creationalContext)
bean
- session beaniface
- interfaceCopyright © 2008–2016 The Apache Software Foundation. All rights reserved.