Interface SubsystemRegistration

All Superinterfaces:
FeatureFilter, FeatureRegistry

public interface SubsystemRegistration extends FeatureRegistry
A subsystem registration.

If no XML mappings are defined, then a simple empty XML mapping is used.

Author:
David M. Lloyd
  • 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

      ManagementResourceRegistration registerSubsystemModel(ResourceDefinition resourceDefinition)
      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

      ManagementResourceRegistration registerDeploymentModel(ResourceDefinition resourceDefinition)
      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 the XMLElementWriter that 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 the XMLElementWriter that 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