Search in sources :

Example 1 with DefaultDataSourceResourceReferenceProcessor

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);
}
Also used : DsDeploymentActivator(org.jboss.as.connector.deployers.ds.DsDeploymentActivator) DefaultDataSourceBindingProcessor(org.jboss.as.connector.deployers.datasource.DefaultDataSourceBindingProcessor) DeploymentProcessorTarget(org.jboss.as.server.DeploymentProcessorTarget) AbstractDeploymentChainStep(org.jboss.as.server.AbstractDeploymentChainStep) DefaultDataSourceResourceReferenceProcessor(org.jboss.as.connector.deployers.datasource.DefaultDataSourceResourceReferenceProcessor)

Aggregations

DefaultDataSourceBindingProcessor (org.jboss.as.connector.deployers.datasource.DefaultDataSourceBindingProcessor)1 DefaultDataSourceResourceReferenceProcessor (org.jboss.as.connector.deployers.datasource.DefaultDataSourceResourceReferenceProcessor)1 DsDeploymentActivator (org.jboss.as.connector.deployers.ds.DsDeploymentActivator)1 AbstractDeploymentChainStep (org.jboss.as.server.AbstractDeploymentChainStep)1 DeploymentProcessorTarget (org.jboss.as.server.DeploymentProcessorTarget)1