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


Java ExtensionParsingContext.setSubsystemXmlMapping方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7: 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

示例8: 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

示例9: 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

示例10: 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

示例11: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override
public void initializeParsers(final ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, SwitchYardExtension.NAMESPACE, SwitchYardSubsystemReader.getInstance());
}
 
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:6,代码来源:SwitchYardExtension.java

示例12: initializeParsers

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

示例13: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.VERSION_1_0.getUriString(), FabricSubsystemParser.INSTANCE);
}
 
开发者ID:tdiesler,项目名称:fabric8poc,代码行数:5,代码来源:FabricExtension.java

示例14: initializeParsers

import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
    // 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, CoreManagementSubsystemParser_1_0.NAMESPACE, new CoreManagementSubsystemParser_1_0());
}
 
开发者ID:wildfly,项目名称:wildfly-core,代码行数:7,代码来源:CoreManagementExtension.java

示例15: initializeParsers

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


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