use of org.jboss.ejb.client.EJBClientInterceptor in project wildfly by wildfly.
the class ClientInterceptorsBindingsProcessor method deploy.
@Override
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
try {
final List<EJBClientInterceptor> clientInterceptors = new ArrayList<>();
for (final Class<? extends EJBClientInterceptor> interceptorClass : clientInterceptorCache.getClientInterceptors()) {
clientInterceptors.add(interceptorClass.newInstance());
}
final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
deploymentUnit.putAttachment(org.jboss.as.ejb3.subsystem.Attachments.STATIC_EJB_CLIENT_INTERCEPTORS, clientInterceptors);
} catch (InstantiationException | IllegalAccessException e) {
throw new DeploymentUnitProcessingException(e);
}
}
Aggregations