Search in sources :

Example 1 with DependencyProcessor

use of org.wildfly.extension.microprofile.config.smallrye.deployment.DependencyProcessor in project wildfly by wildfly.

the class MicroProfileConfigSubsystemAdd method performBoottime.

/**
 * {@inheritDoc}
 */
@Override
public void performBoottime(OperationContext context, ModelNode operation, ModelNode model) {
    MicroProfileConfigLogger.ROOT_LOGGER.activatingSubsystem();
    context.addStep(new AbstractDeploymentChainStep() {

        @Override
        public void execute(DeploymentProcessorTarget processorTarget) {
            processorTarget.addDeploymentProcessor(MicroProfileConfigExtension.SUBSYSTEM_NAME, Phase.DEPENDENCIES, Phase.DEPENDENCIES_MICROPROFILE_CONFIG, new DependencyProcessor());
            processorTarget.addDeploymentProcessor(MicroProfileConfigExtension.SUBSYSTEM_NAME, Phase.POST_MODULE, Phase.POST_MODULE_MICROPROFILE_CONFIG, new SubsystemDeploymentProcessor());
        }
    }, OperationContext.Stage.RUNTIME);
}
Also used : DependencyProcessor(org.wildfly.extension.microprofile.config.smallrye.deployment.DependencyProcessor) DeploymentProcessorTarget(org.jboss.as.server.DeploymentProcessorTarget) AbstractDeploymentChainStep(org.jboss.as.server.AbstractDeploymentChainStep) SubsystemDeploymentProcessor(org.wildfly.extension.microprofile.config.smallrye.deployment.SubsystemDeploymentProcessor)

Aggregations

AbstractDeploymentChainStep (org.jboss.as.server.AbstractDeploymentChainStep)1 DeploymentProcessorTarget (org.jboss.as.server.DeploymentProcessorTarget)1 DependencyProcessor (org.wildfly.extension.microprofile.config.smallrye.deployment.DependencyProcessor)1 SubsystemDeploymentProcessor (org.wildfly.extension.microprofile.config.smallrye.deployment.SubsystemDeploymentProcessor)1