本文整理汇总了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());
}
}
示例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());
}
示例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 {
}
});
}
示例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);
}
示例5: initializeParsers
import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE, parser);
}
示例6: initializeParsers
import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, CURRENT.getUriString(), OrientDriverSubsystemParser.INSTANCE);
}
示例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());
}
示例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);
}
示例9: initializeParsers
import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE, parser);
}
示例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);
}
示例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());
}
示例12: initializeParsers
import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, parser.getNamespace(), parser);
}
示例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);
}
示例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());
}
示例15: initializeParsers
import org.jboss.as.controller.parsing.ExtensionParsingContext; //导入方法依赖的package包/类
@Override
public void initializeParsers(ExtensionParsingContext context) {
context.setSubsystemXmlMapping(SUBSYSTEM_NAME, NAMESPACE, () -> parser);
}