Class ContextualSubsystemRegistration

All Implemented Interfaces:
ManagementRegistrationContext, SubsystemRegistration, org.jboss.as.controller.FeatureFilter, org.jboss.as.controller.FeatureRegistry, org.jboss.as.controller.SubsystemRegistration

public class ContextualSubsystemRegistration extends DecoratingSubsystemRegistration<ManagementResourceRegistration> implements SubsystemRegistration
Author:
Paul Ferraro
  • Constructor Details

    • ContextualSubsystemRegistration

      public ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, org.jboss.as.controller.ExtensionContext context)
    • ContextualSubsystemRegistration

      public ContextualSubsystemRegistration(org.jboss.as.controller.SubsystemRegistration registration, ManagementRegistrationContext context)
  • Method Details

    • isRuntimeOnlyRegistrationValid

      public boolean isRuntimeOnlyRegistrationValid()
      Description copied from interface: ManagementRegistrationContext
      Gets whether it is valid for the extension to register resources, attributes or operations that do not involve the persistent configuration, but rather only involve runtime services. Extensions should use this method before registering such "runtime only" resources, attributes or operations. This method is intended to avoid registering resources, attributes or operations on process types that can not install runtime services.
      Specified by:
      isRuntimeOnlyRegistrationValid in interface ManagementRegistrationContext
      Returns:
      whether it is valid to register runtime resources, attributes, or operations.
      See Also:
      • ExtensionContext.isRuntimeOnlyRegistrationValid()
    • getPathManager

      public Optional<org.jboss.as.controller.services.path.PathManager> getPathManager()
      Description copied from interface: ManagementRegistrationContext
      Returns the optional PathManager of the process that is only present if the process is a server.
      Specified by:
      getPathManager in interface ManagementRegistrationContext
      Returns:
      an optional PathManager.
      See Also:
      • ExtensionContext.getPathManager()