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


Java ExtensionParsingContext类代码示例

本文整理汇总了Java中org.jboss.as.controller.parsing.ExtensionParsingContext的典型用法代码示例。如果您正苦于以下问题:Java ExtensionParsingContext类的具体用法?Java ExtensionParsingContext怎么用?Java ExtensionParsingContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ExtensionParsingContext类属于org.jboss.as.controller.parsing包,在下文中一共展示了ExtensionParsingContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(final ExtensionParsingContext context) {
    setParser(context, Namespace.LOGGING_1_0, new LoggingSubsystemParser_1_0());
    setParser(context, Namespace.LOGGING_1_1, new LoggingSubsystemParser_1_1());
    setParser(context, Namespace.LOGGING_1_2, new LoggingSubsystemParser_1_2());
    setParser(context, Namespace.LOGGING_1_3, new LoggingSubsystemParser_1_3());
    setParser(context, Namespace.LOGGING_1_4, new LoggingSubsystemParser_1_4());
    setParser(context, Namespace.LOGGING_1_5, new LoggingSubsystemParser_1_5());
    setParser(context, Namespace.LOGGING_2_0, new LoggingSubsystemParser_2_0());
    setParser(context, Namespace.LOGGING_3_0, new LoggingSubsystemParser_3_0());
    setParser(context, Namespace.LOGGING_4_0, new LoggingSubsystemParser_4_0());

    // Hack to ensure the Element and Attribute enums are loaded during this call which
    // is part of concurrent boot. These enums trigger a lot of classloading and static
    // initialization that we don't want deferred until the single-threaded parsing phase
    if (Element.forName("").equals(Attribute.forName(""))) { // never true
        throw new IllegalStateException();
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:20,代码来源:LoggingExtension.java

示例2: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_1_0.getUriString(), RemotingSubsystem10Parser::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_1_1.getUriString(), RemotingSubsystem11Parser::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_1_2.getUriString(), RemotingSubsystem12Parser::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_2_0.getUriString(), RemotingSubsystem20Parser::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_3_0.getUriString(), RemotingSubsystem30Parser::new);
    // For the current version we don't use a Supplier as we want its description initialized
    // TODO if any new xsd versions are added, use a Supplier for the old version
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.REMOTING_4_0.getUriString(), new RemotingSubsystem40Parser());

    // For servers only as a migration aid we'll install io if it is missing.
    // It is invalid to do this on an HC as the HC needs to support profiles running legacy
    // slaves that will not understand the io extension
    // See also WFCORE-778 and the description of the pull request for it
    if (context.getProcessType().isServer()) {
        context.setProfileParsingCompletionHandler(new IOCompletionHandler());
    }
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:23,代码来源:RemotingExtension.java

示例3: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE_1_0, () -> new ElytronSubsystemParser1_0());
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE_1_1, () -> new ElytronSubsystemParser1_1());
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE_1_2, () -> new ElytronSubsystemParser1_2());
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE_2_0, () -> new ElytronSubsystemParser2_0());
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:8,代码来源:ElytronExtension.java

示例4: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, "urn:jboss:domain:test-extension:1.0", new XMLElementReader<List<ModelNode>>() {

        @Override
        public void readElement(XMLExtendedStreamReader reader, List<ModelNode> value) throws XMLStreamException {
        }
    });
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:10,代码来源:TestExtension.java

示例5: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_0.getUriString(), JMXSubsystemParser_1_0::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_1.getUriString(), JMXSubsystemParser_1_1::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_2.getUriString(), JMXSubsystemParser_1_2::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_3.getUriString(), JMXSubsystemParser_1_3::new);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:11,代码来源:JMXExtension.java

示例6: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {

    if (context.getProcessType() == ProcessType.DOMAIN_SERVER) {
        // Do nothing. This allows the extension=cmp:add op that's really targeted
        // to legacy servers to work
        return;
    } else if (context.getProcessType() == ProcessType.STANDALONE_SERVER && context.getRunningMode() != RunningMode.ADMIN_ONLY) {
        throw new UnsupportedOperationException(ControllerLogger.ROOT_LOGGER.unsupportedLegacyExtension(extensionName));
    }

    initializeLegacyParsers(context);
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:14,代码来源:AbstractLegacyExtension.java

示例7: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.DEPLOYMENT_SCANNER_1_0.getUriString(), DeploymentScannerParser_1_0::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.DEPLOYMENT_SCANNER_1_1.getUriString(), DeploymentScannerParser_1_1::new);
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.DEPLOYMENT_SCANNER_2_0.getUriString(), DeploymentScannerParser_2_0::new);

}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:11,代码来源:DeploymentScannerExtension.java

示例8: cloneExtensionRegistry

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
private ExtensionRegistry cloneExtensionRegistry(AdditionalInitialization additionalInit) {
    final ExtensionRegistry clone = new ExtensionRegistry(additionalInit.getProcessType(), new RunningModeControl(additionalInit.getExtensionRegistryRunningMode()), null, null, null, RuntimeHostControllerInfoAccessor.SERVER);
    for (String extension : extensionParsingRegistry.getExtensionModuleNames()) {
        ExtensionParsingContext epc = clone.getExtensionParsingContext(extension, null);
        for (Map.Entry<String, SubsystemInformation> entry : extensionParsingRegistry.getAvailableSubsystems(extension).entrySet()) {
            for (String namespace : entry.getValue().getXMLNamespaces()) {
                epc.setSubsystemXmlMapping(entry.getKey(), namespace, (XMLElementReader) null);
            }
        }
    }

    return clone;
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:14,代码来源:SubsystemTestDelegate.java

示例9: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, SubsytemParser_1_0.NAMESPACE, SubsytemParser_1_0.INSTANCE);
}
 
开发者ID:wildfly-extras,项目名称:wildfly-microprofile-config,代码行数:4,代码来源:SubsystemExtension.java

示例10: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE, parser);
}
 
开发者ID:wildfly,项目名称:wildfly-nosql,代码行数:8,代码来源:Neo4jDriverExtension.java

示例11: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, CURRENT.getUriString(), OrientDriverSubsystemParser.INSTANCE);
}
 
开发者ID:wildfly,项目名称:wildfly-nosql,代码行数:4,代码来源:OrientDriverExtension.java

示例12: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
  context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.CURRENT.getUriString(), SmppSubsystemParser.getInstance());
}
 
开发者ID:RestComm,项目名称:smpp-extensions,代码行数:5,代码来源:SmppExtension.java

示例13: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.METRICS_1_0.getUriString(), JamMetricsSubsystemParser_1_0.INSTANCE);
}
 
开发者ID:panossot,项目名称:jam-metrics,代码行数:5,代码来源:JamMetricsExtension.java

示例14: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE, parser);
}
 
开发者ID:hawkular,项目名称:hawkular-commons,代码行数:5,代码来源:NestSubsystemExtension.java

示例15: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
	context.setSubsystemXmlMapping(TEIID_SUBSYSTEM, Namespace.TEIID_1_0.getUri(), TeiidSubsystemParser.INSTANCE);
}
 
开发者ID:kenweezy,项目名称:teiid,代码行数:5,代码来源:TeiidExtension.java


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