Search in sources :

Example 16 with Interceptor

use of org.jboss.invocation.Interceptor in project wildfly by wildfly.

the class ComponentInstanceInterceptorFactory method create.

@Override
public final Interceptor create(InterceptorFactoryContext context) {
    final Map<Object, Object> contextData = context.getContextData();
    Interceptor interceptor = (Interceptor) contextData.get(KEY);
    if (interceptor == null) {
        final Component component = (Component) context.getContextData().get(Component.class);
        contextData.put(KEY, interceptor = create(component, context));
    }
    return interceptor;
}
Also used : Interceptor(org.jboss.invocation.Interceptor)

Aggregations

Interceptor (org.jboss.invocation.Interceptor)16 InterceptorContext (org.jboss.invocation.InterceptorContext)8 Method (java.lang.reflect.Method)5 InterceptorFactory (org.jboss.invocation.InterceptorFactory)5 ImmediateInterceptorFactory (org.jboss.invocation.ImmediateInterceptorFactory)4 ArrayList (java.util.ArrayList)2 Component (org.jboss.as.ee.component.Component)2 ComponentConfiguration (org.jboss.as.ee.component.ComponentConfiguration)2 EJBViewDescription (org.jboss.as.ejb3.component.EJBViewDescription)2 SessionBeanComponentDescription (org.jboss.as.ejb3.component.session.SessionBeanComponentDescription)2 LifecycleCMTTxInterceptor (org.jboss.as.ejb3.tx.LifecycleCMTTxInterceptor)2 DeploymentPhaseContext (org.jboss.as.server.deployment.DeploymentPhaseContext)2 DeploymentUnitProcessingException (org.jboss.as.server.deployment.DeploymentUnitProcessingException)2 SimpleInterceptorFactoryContext (org.jboss.invocation.SimpleInterceptorFactoryContext)2 PrivilegedAction (java.security.PrivilegedAction)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 IdentityHashMap (java.util.IdentityHashMap)1 LinkedList (java.util.LinkedList)1 Map (java.util.Map)1