use of org.jboss.invocation.SimpleInterceptorFactoryContext in project wildfly by wildfly.
the class BasicComponent method start.
/**
* {@inheritDoc}
*/
public synchronized void start() {
final InterceptorFactoryContext context = new SimpleInterceptorFactoryContext();
context.getContextData().put(Component.class, this);
createInterceptors(context);
this.stopping.set(false);
gate = true;
notifyAll();
}
use of org.jboss.invocation.SimpleInterceptorFactoryContext in project wildfly by wildfly.
the class TimedObjectInvokerImpl method start.
@Override
public synchronized void start(final StartContext context) throws StartException {
SimpleInterceptorFactoryContext factoryContext = new SimpleInterceptorFactoryContext();
factoryContext.getContextData().put(Component.class, ejbComponent.getValue());
Map<Method, Interceptor> interceptors = new HashMap<Method, Interceptor>();
for (Map.Entry<Method, InterceptorFactory> entry : ejbComponent.getValue().getTimeoutInterceptors().entrySet()) {
interceptors.put(entry.getKey(), entry.getValue().create(factoryContext));
}
this.timeoutInterceptors = interceptors;
started = true;
}
use of org.jboss.invocation.SimpleInterceptorFactoryContext in project wildfly by wildfly.
the class ViewService method start.
public void start(final StartContext context) throws StartException {
// Construct the view
View view = new View(privateData);
view.initializeInterceptors();
this.view = view;
final SimpleInterceptorFactoryContext factoryContext = new SimpleInterceptorFactoryContext();
final Component component = view.getComponent();
factoryContext.getContextData().put(Component.class, component);
factoryContext.getContextData().put(ComponentView.class, view);
clientPostConstructInterceptor = clientPostConstruct.create(factoryContext);
clientPreDestroyInterceptor = clientPreDestroy.create(factoryContext);
final Map<Method, InterceptorFactory> clientInterceptorFactories = ViewService.this.clientInterceptorFactories;
clientInterceptors = new IdentityHashMap<Method, Interceptor>(clientInterceptorFactories.size());
for (Method method : clientInterceptorFactories.keySet()) {
clientInterceptors.put(method, clientInterceptorFactories.get(method).create(factoryContext));
}
}
use of org.jboss.invocation.SimpleInterceptorFactoryContext in project wildfly by wildfly.
the class BasicComponent method init.
public synchronized void init() {
final InterceptorFactoryContext context = new SimpleInterceptorFactoryContext();
context.getContextData().put(Component.class, this);
createInterceptors(context);
}
Aggregations