use of org.jboss.as.connector.deployers.datasource.DefaultDataSourceResourceReferenceProcessor in project wildfly by wildfly.
the class DataSourcesSubsystemAdd method performBoottime.
@Override
protected void performBoottime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException {
final DsDeploymentActivator dsDeploymentActivator = new DsDeploymentActivator();
context.addStep(new AbstractDeploymentChainStep() {
protected void execute(DeploymentProcessorTarget processorTarget) {
dsDeploymentActivator.activateProcessors(processorTarget);
processorTarget.addDeploymentProcessor(DataSourcesExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, Phase.STRUCTURE_DATASOURCE_RESOURCE_INJECTION, new DefaultDataSourceResourceReferenceProcessor());
processorTarget.addDeploymentProcessor(DataSourcesExtension.SUBSYSTEM_NAME, Phase.INSTALL, Phase.INSTALL_DEFAULT_BINDINGS_DATASOURCE, new DefaultDataSourceBindingProcessor());
}
}, OperationContext.Stage.RUNTIME);
}
Aggregations