Package org.jboss.as.weld.ejb
Class EjbRequestScopeActivationInterceptor
java.lang.Object
org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor
- All Implemented Interfaces:
Serializable,org.jboss.invocation.Interceptor
public class EjbRequestScopeActivationInterceptor
extends org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
implements Serializable, org.jboss.invocation.Interceptor
Interceptor for activating the Jakarta Contexts and Dependency Injection request scope on some Jakarta Enterprise Beans invocations.
Remote Jakarta Enterprise Beans invocations must also have the request scope active, but it may already be active for in-VM requests.
This interceptor is largely stateless, and can be re-used
Note that EjbRequestContext is actually bound to InvocationContext and so it's ok to use this interceptor for other components than Jakarta Enterprise Beans.
- Author:
- Stuart Douglas, Jozef Hartinger
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jboss.invocation.Interceptor
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionEjbRequestScopeActivationInterceptor(org.jboss.msc.service.ServiceName beanManagerServiceName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jboss.weld.manager.BeanManagerImplprotected org.jboss.weld.context.ejb.EjbRequestContextprocessInvocation(org.jboss.invocation.InterceptorContext context) Methods inherited from class org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
aroundInvoke, isRequestContextActive
-
Constructor Details
-
EjbRequestScopeActivationInterceptor
public EjbRequestScopeActivationInterceptor(org.jboss.msc.service.ServiceName beanManagerServiceName)
-
-
Method Details
-
getBeanManager
protected org.jboss.weld.manager.BeanManagerImpl getBeanManager()- Specified by:
getBeanManagerin classorg.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
-
getEjbRequestContext
protected org.jboss.weld.context.ejb.EjbRequestContext getEjbRequestContext()- Overrides:
getEjbRequestContextin classorg.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
-
processInvocation
- Specified by:
processInvocationin interfaceorg.jboss.invocation.Interceptor- Throws:
Exception
-