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;
}
Aggregations