本文整理汇总了Java中org.jboss.as.server.deployment.DeploymentUnitProcessor类的典型用法代码示例。如果您正苦于以下问题:Java DeploymentUnitProcessor类的具体用法?Java DeploymentUnitProcessor怎么用?Java DeploymentUnitProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DeploymentUnitProcessor类属于org.jboss.as.server.deployment包,在下文中一共展示了DeploymentUnitProcessor类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addDeploymentProcessor
import org.jboss.as.server.deployment.DeploymentUnitProcessor; //导入依赖的package包/类
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);
}
示例2: caughtExceptionUndeploying
import org.jboss.as.server.deployment.DeploymentUnitProcessor; //导入依赖的package包/类
@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);
示例3: addDeploymentProcessor
import org.jboss.as.server.deployment.DeploymentUnitProcessor; //导入依赖的package包/类
public void addDeploymentProcessor(final String subsystemName, final Phase phase, final int priority, final DeploymentUnitProcessor processor) {
DeployerChainAddHandler.addDeploymentProcessor(subsystemName, phase, priority, processor);
}
示例4: addDeploymentProcessor
import org.jboss.as.server.deployment.DeploymentUnitProcessor; //导入依赖的package包/类
@Override
public void addDeploymentProcessor(DeploymentProcessorTarget processorTarget, SubsystemState subsystemState) {
DeploymentUnitProcessor parser = new JBossAllXmlParserRegisteringProcessor<CamelDeploymentSettings>(CamelIntegrationParser.ROOT_ELEMENT, CamelDeploymentSettings.ATTACHMENT_KEY, new CamelIntegrationParser());
processorTarget.addDeploymentProcessor(CamelExtension.SUBSYSTEM_NAME, Phase.STRUCTURE, CamelSubsystemAdd.STRUCTURE_REGISTER_CAMEL_INTEGRATION, parser);
}
示例5: addDeploymentProcessor
import org.jboss.as.server.deployment.DeploymentUnitProcessor; //导入依赖的package包/类
/**
* 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);