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