use of org.jboss.as.server.deployment.DeploymentUnitPhaseBuilder in project wildfly by wildfly.
the class SingletonDeploymentProcessor method deploy.
@Override
public void deploy(DeploymentPhaseContext context) throws DeploymentUnitProcessingException {
SingletonPolicy policy = context.getAttachment(POLICY_KEY);
if (policy != null) {
DeploymentUnit parent = context.getDeploymentUnit().getParent();
DeploymentUnitPhaseBuilder builder = (parent == null) ? new SingletonDeploymentUnitPhaseBuilder(policy) : new SingletonSubDeploymentUnitPhaseBuilder(parent, context.getPhase().next());
context.putAttachment(Attachments.DEPLOYMENT_UNIT_PHASE_BUILDER, builder);
}
}
Aggregations