当前位置: 首页>>代码示例>>Java>>正文


Java DeploymentUnitProcessor类代码示例

本文整理汇总了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);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:10,代码来源:DeployerChainAddHandler.java

示例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);
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:4,代码来源:ServerLogger.java

示例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);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:4,代码来源:AbstractDeploymentChainStep.java

示例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);
}
 
开发者ID:wildfly-extras,项目名称:wildfly-camel,代码行数:6,代码来源:CamelCoreSubsystemExtension.java

示例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);
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:10,代码来源:DeploymentProcessorTarget.java


注:本文中的org.jboss.as.server.deployment.DeploymentUnitProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。