use of org.jboss.as.ee.concurrent.ConcurrentContextSetupAction in project wildfly by wildfly.
the class EEConcurrentContextProcessor method processModuleDescription.
private void processModuleDescription(final EEModuleDescription moduleDescription, DeploymentUnit deploymentUnit, DeploymentPhaseContext phaseContext) {
final ConcurrentContext concurrentContext = moduleDescription.getConcurrentContext();
// setup context
setupConcurrentContext(concurrentContext, moduleDescription.getApplicationName(), moduleDescription.getModuleName(), null, deploymentUnit.getAttachment(MODULE).getClassLoader(), moduleDescription.getNamespaceContextSelector(), deploymentUnit, phaseContext.getServiceTarget());
// attach setup action
final ConcurrentContextSetupAction setupAction = new ConcurrentContextSetupAction(concurrentContext);
deploymentUnit.putAttachment(Attachments.CONCURRENT_CONTEXT_SETUP_ACTION, setupAction);
deploymentUnit.addToAttachmentList(Attachments.WEB_SETUP_ACTIONS, setupAction);
}
use of org.jboss.as.ee.concurrent.ConcurrentContextSetupAction in project wildfly by wildfly.
the class WeldDeploymentProcessor method getSetupActions.
static List<SetupAction> getSetupActions(DeploymentUnit deploymentUnit) {
final List<SetupAction> setupActions = new ArrayList<SetupAction>();
JavaNamespaceSetup naming = deploymentUnit.getAttachment(org.jboss.as.ee.naming.Attachments.JAVA_NAMESPACE_SETUP_ACTION);
if (naming != null) {
setupActions.add(naming);
}
final ConcurrentContextSetupAction concurrentContext = deploymentUnit.getAttachment(org.jboss.as.ee.component.Attachments.CONCURRENT_CONTEXT_SETUP_ACTION);
if (concurrentContext != null) {
setupActions.add(concurrentContext);
}
return setupActions;
}
Aggregations