public interface ExtensionParsingContext
extension element for a given Extension is being parsed. Allows the
extension to initialize the XML parsers that can
be used for parsing the subsystem elements that contain the configuration for its subsystems.| Modifier and Type | Method and Description |
|---|---|
ProcessType |
getProcessType()
Gets the type of the current process.
|
RunningMode |
getRunningMode()
Gets the current running mode of the process.
|
void |
setProfileParsingCompletionHandler(ProfileParsingCompletionHandler handler)
Registers a
ProfileParsingCompletionHandler to receive a callback upon completion of parsing of a
profile. |
void |
setSubsystemXmlMapping(String subsystemName,
String namespaceUri,
Supplier<org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>> supplier)
Set the parser for the profile-wide subsystem configuration XML element.
|
void |
setSubsystemXmlMapping(String subsystemName,
String namespaceUri,
org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> reader)
Set the parser for the profile-wide subsystem configuration XML element.
|
ProcessType getProcessType()
nullRunningMode getRunningMode()
nullvoid setSubsystemXmlMapping(String subsystemName, String namespaceUri, org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>> reader)
"subsystem". The reader should populate the given model node with the appropriate
"subsystem add" update, without the address or operation name as that information will be automatically
populated.subsystemName - the name of the subsystem. Cannot be nullnamespaceUri - the URI of the subsystem's XML namespace, in string form. Cannot be nullreader - the element reader. Cannot be nullIllegalStateException - if another Extension has already registered a subsystem with the given
subsystemNamevoid setSubsystemXmlMapping(String subsystemName, String namespaceUri, Supplier<org.jboss.staxmapper.XMLElementReader<List<org.jboss.dmr.ModelNode>>> supplier)
"subsystem". The reader should populate the given model node with the appropriate
"subsystem add" update, without the address or operation name as that information will be automatically
populated.
It is recommended that supplier always creates new instance of the XMLElementReader
instead of caching and returning always same instance.subsystemName - the name of the subsystem. Cannot be nullnamespaceUri - the URI of the sussystem's XML namespace, in string form. Cannot be nullsupplier - of the element reader. Cannot be nullIllegalStateException - if another Extension has already registered a subsystem with the given
subsystemNamevoid setProfileParsingCompletionHandler(ProfileParsingCompletionHandler handler)
ProfileParsingCompletionHandler to receive a callback upon completion of parsing of a
profile.handler - the handler. Cannot be nullCopyright © 2020 JBoss by Red Hat. All rights reserved.