Class 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:
    Serialized Form
    • Constructor Detail

      • EjbRequestScopeActivationInterceptor

        public EjbRequestScopeActivationInterceptor​(org.jboss.msc.service.ServiceName beanManagerServiceName)
    • Method Detail

      • getBeanManager

        protected org.jboss.weld.manager.BeanManagerImpl getBeanManager()
        Specified by:
        getBeanManager in class org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
      • getEjbRequestContext

        protected org.jboss.weld.context.ejb.EjbRequestContext getEjbRequestContext()
        Overrides:
        getEjbRequestContext in class org.jboss.weld.module.ejb.AbstractEJBRequestScopeActivationInterceptor
      • processInvocation

        public Object processInvocation​(org.jboss.invocation.InterceptorContext context)
                                 throws Exception
        Specified by:
        processInvocation in interface org.jboss.invocation.Interceptor
        Throws:
        Exception