org.jboss.as.server.deployment.DeploymentUnitProcessor Java Examples

The following examples show how to use org.jboss.as.server.deployment.DeploymentUnitProcessor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeployerChainAddHandler.java    From wildfly-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public static void addDeploymentProcessor(final String subsystemName, Phase phase, int priority, DeploymentUnitProcessor processor) {
    final EnumMap<Phase, Set<RegisteredDeploymentUnitProcessor>> deployerMap = INSTANCE.deployerMap;
    Set<RegisteredDeploymentUnitProcessor> registeredDeploymentUnitProcessors = deployerMap.get(phase);
    RegisteredDeploymentUnitProcessor registeredDeploymentUnitProcessor = new RegisteredDeploymentUnitProcessor(priority, processor, subsystemName);
    if(registeredDeploymentUnitProcessors.contains(registeredDeploymentUnitProcessor)) {
        throw ServerLogger.ROOT_LOGGER.duplicateDeploymentUnitProcessor(priority, processor.getClass());
    }
    registeredDeploymentUnitProcessors.add(registeredDeploymentUnitProcessor);
}
 
Example #2
Source File: ServerLogger.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@LogMessage(level = ERROR)
@Message(id = 43, value = "Deployment unit processor %s unexpectedly threw an exception during undeploy phase %s of %s")
void caughtExceptionUndeploying(@Cause Throwable cause, DeploymentUnitProcessor dup, Phase phase, DeploymentUnit unit);
 
Example #3
Source File: AbstractDeploymentChainStep.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
public void addDeploymentProcessor(final String subsystemName, final Phase phase, final int priority, final DeploymentUnitProcessor processor) {
    DeployerChainAddHandler.addDeploymentProcessor(subsystemName, phase, priority, processor);
}
 
Example #4
Source File: AbstractDeploymentChainStep.java    From wildfly-core with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public void addDeploymentProcessor(final Phase phase, final int priority, final DeploymentUnitProcessor processor) {
    addDeploymentProcessor("", phase, priority, processor);
}
 
Example #5
Source File: CamelCoreSubsystemExtension.java    From wildfly-camel with Apache License 2.0 4 votes vote down vote up
@Override
public void addDeploymentProcessor(DeploymentProcessorTarget processorTarget, SubsystemState subsystemState) {
    DeploymentUnitProcessor parser = new JBossAllXmlParserRegisteringProcessor<CamelDeploymentSettings.Builder>(CamelIntegrationParser.ROOT_ELEMENT, CamelDeploymentSettings.BUILDER_ATTACHMENT_KEY, new CamelIntegrationParser());
    processorTarget.addDeploymentProcessor(CamelExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, CamelSubsystemAdd.STRUCTURE_REGISTER_CAMEL_INTEGRATION, parser);
}
 
Example #6
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseDependencyProcessor() {
    return new KeycloakDependencyProcessorWildFly();
}
 
Example #7
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseConfigDeploymentProcessor() {
    return new KeycloakAdapterConfigDeploymentProcessor();
}
 
Example #8
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseDependencyProcessor() {
    return new KeycloakDependencyProcessorAS7();
}
 
Example #9
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseConfigDeploymentProcessor() {
    return new KeycloakAdapterConfigDeploymentProcessor();
}
 
Example #10
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseClusteredSsoDeploymentProcessor() {
    return new KeycloakClusteredSsoDeploymentProcessor();
}
 
Example #11
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseDependencyProcessor() {
    return new KeycloakDependencyProcessorWildFly();
}
 
Example #12
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseConfigDeploymentProcessor() {
    return new KeycloakAdapterConfigDeploymentProcessor();
}
 
Example #13
Source File: KeycloakSubsystemAdd.java    From keycloak with Apache License 2.0 4 votes vote down vote up
private DeploymentUnitProcessor chooseClusteredSsoDeploymentProcessor() {
    return new KeycloakClusteredSsoDeploymentProcessor();
}
 
Example #14
Source File: DeploymentProcessorTarget.java    From wildfly-core with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Add a deployment processor.
 *
 * @param subsystemName The name of the subsystem registering this processor
 * @param phase the processor phase install into (must not be {@code null})
 * @param priority the priority within the selected phase
 * @param processor the processor to install
 */
void addDeploymentProcessor(String subsystemName, Phase phase, int priority, DeploymentUnitProcessor processor);
 
Example #15
Source File: DeploymentProcessorTarget.java    From wildfly-core with GNU Lesser General Public License v2.1 2 votes vote down vote up
/**
 * Add a deployment processor.
 *
 * This is a legacy method that does not take a subsystem name. A subsystem name
 * of the empty string is assumed.
 *
 * @param phase the processor phase install into (must not be {@code null})
 * @param priority the priority within the selected phase
 * @param processor the processor to install
 */
@Deprecated
void addDeploymentProcessor(Phase phase, int priority, DeploymentUnitProcessor processor);