Package org.jboss.as.controller
Interface SubsystemRegistration
- All Superinterfaces:
FeatureFilter,FeatureRegistry
A subsystem registration.
If no XML mappings are defined, then a simple empty XML mapping is used.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionGet the version of the subsystemregisterDeploymentModel(ResourceDefinition resourceDefinition) Get the deployment model node registration for this subsystem.registerSubsystemModel(ResourceDefinition resourceDefinition) Get the model node registration for this subsystem.default voidregisterXMLElementWriter(Supplier<org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> writer) Registers theXMLElementWriterthat can handle marshalling the subsystem's configuration to XML.voidregisterXMLElementWriter(org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer) Registers theXMLElementWriterthat can handle marshalling the subsystem's configuration to XML.voidMark a subsystem as host capable.Methods inherited from interface org.jboss.as.controller.FeatureRegistry
enables, getStability
-
Method Details
-
setHostCapable
void setHostCapable()Mark a subsystem as host capable. This will only take effect if running on a HC, and be ignored on a standalone or managed server. The standard behaviour on the HC is to register the subsystem resource definitions in the domain model under the/profile=*address. If this method is called, the standard behaviour happens, but in addition the resource definitions are registered in the local host model so that the subsystem can be added there as well. -
registerSubsystemModel
Get the model node registration for this subsystem.- Parameters:
resourceDefinition- factory for the provider of the description of the subsystem's root management resource- Returns:
- the subsystem-level model node registration
-
registerDeploymentModel
Get the deployment model node registration for this subsystem.- Parameters:
resourceDefinition- factory for the provider of the description of the subsystem's root deployment-level management resource- Returns:
- the deployment-level model node registration
-
registerXMLElementWriter
void registerXMLElementWriter(org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext> writer) Registers theXMLElementWriterthat can handle marshalling the subsystem's configuration to XML.- Parameters:
writer- the writer
-
registerXMLElementWriter
default void registerXMLElementWriter(Supplier<org.jboss.staxmapper.XMLElementWriter<SubsystemMarshallingContext>> writer) Registers theXMLElementWriterthat can handle marshalling the subsystem's configuration to XML.- Parameters:
writer- the writer
-
getSubsystemVersion
ModelVersion getSubsystemVersion()Get the version of the subsystem- Returns:
- the version
-