Search in sources :

Example 1 with ConcurrentContextSetupAction

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);
}
Also used : ConcurrentContextSetupAction(org.jboss.as.ee.concurrent.ConcurrentContextSetupAction) ConcurrentContext(org.jboss.as.ee.concurrent.ConcurrentContext)

Example 2 with ConcurrentContextSetupAction

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;
}
Also used : ConcurrentContextSetupAction(org.jboss.as.ee.concurrent.ConcurrentContextSetupAction) JavaNamespaceSetup(org.jboss.as.ee.naming.JavaNamespaceSetup) ArrayList(java.util.ArrayList) SetupAction(org.jboss.as.server.deployment.SetupAction) ConcurrentContextSetupAction(org.jboss.as.ee.concurrent.ConcurrentContextSetupAction)

Aggregations

ConcurrentContextSetupAction (org.jboss.as.ee.concurrent.ConcurrentContextSetupAction)2 ArrayList (java.util.ArrayList)1 ConcurrentContext (org.jboss.as.ee.concurrent.ConcurrentContext)1 JavaNamespaceSetup (org.jboss.as.ee.naming.JavaNamespaceSetup)1 SetupAction (org.jboss.as.server.deployment.SetupAction)1