Class ContextualResourceRegistration

java.lang.Object
org.jboss.as.controller.registry.DelegatingManagementResourceRegistration
org.jboss.as.clustering.controller.DecoratingResourceRegistration<ManagementResourceRegistration>
org.jboss.as.clustering.controller.ContextualResourceRegistration
All Implemented Interfaces:
ManagementRegistrationContext, ManagementResourceRegistration, org.jboss.as.controller.FeatureFilter, org.jboss.as.controller.FeatureRegistry, org.jboss.as.controller.registry.ImmutableManagementResourceRegistration, org.jboss.as.controller.registry.ManagementResourceRegistration

public class ContextualResourceRegistration extends DecoratingResourceRegistration<ManagementResourceRegistration> implements ManagementResourceRegistration
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jboss.as.controller.registry.DelegatingManagementResourceRegistration

    org.jboss.as.controller.registry.DelegatingManagementResourceRegistration.RegistrationDelegateProvider

    Nested classes/interfaces inherited from interface org.jboss.as.controller.registry.ManagementResourceRegistration

    org.jboss.as.controller.registry.ManagementResourceRegistration.Factory
  • Field Summary

    Fields inherited from interface org.jboss.as.controller.registry.ImmutableManagementResourceRegistration

    ACCESS_PERMISSION
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContextualResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration registration, ManagementRegistrationContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.jboss.as.controller.services.path.PathManager>
    Returns the optional PathManager of the process that is only present if the process is a server.
    boolean
    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.

    Methods inherited from class org.jboss.as.clustering.controller.DecoratingResourceRegistration

    registerOverrideModel, registerSubModel

    Methods inherited from class org.jboss.as.controller.registry.DelegatingManagementResourceRegistration

    enables, getAccessConstraints, getAdditionalRuntimePackages, getAliasEntry, getAttributeAccess, getAttributeNames, getAttributes, getCapabilities, getChildAddresses, getChildNames, getFeature, getIncorporatingCapabilities, getMaxOccurs, getMinOccurs, getModelDescription, getNotificationDescriptions, getOperationDescription, getOperationDescriptions, getOperationEntry, getOperationFlags, getOperationHandler, getOrderedChildTypes, getOverrideModel, getParent, getPathAddress, getProcessType, getProxyController, getProxyControllers, getRequirements, getStability, getSubModel, isAlias, isAllowsOverride, isFeature, isOrderedChildResource, isRemote, isRuntimeOnly, registerAdditionalRuntimePackages, registerAlias, registerCapability, registerIncorporatingCapabilities, registerMetric, registerNotification, registerNotification, registerOperationHandler, registerOperationHandler, registerProxyController, registerReadOnlyAttribute, registerReadWriteAttribute, registerRequirements, unregisterAlias, unregisterAttribute, unregisterNotification, unregisterOperationHandler, unregisterOverrideModel, unregisterProxyController, unregisterSubModel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.as.controller.FeatureRegistry

    enables, getStability

    Methods inherited from interface org.jboss.as.controller.registry.ImmutableManagementResourceRegistration

    getAccessConstraints, getAdditionalRuntimePackages, getAliasEntry, getAttributeAccess, getAttributeNames, getAttributes, getCapabilities, getChildAddresses, getChildNames, getFeature, getIncorporatingCapabilities, getMaxOccurs, getMinOccurs, getModelDescription, getNotificationDescriptions, getOperationDescription, getOperationDescriptions, getOperationEntry, getOperationFlags, getOperationHandler, getOrderedChildTypes, getParent, getPathAddress, getProcessType, getProxyController, getProxyControllers, getRequirements, isAlias, isFeature, isOrderedChildResource, isRemote, isRuntimeOnly

    Methods inherited from interface org.jboss.as.clustering.controller.ManagementResourceRegistration

    registerOverrideModel, registerSubModel

    Methods inherited from interface org.jboss.as.controller.registry.ManagementResourceRegistration

    getOverrideModel, getSubModel, isAllowsOverride, registerAdditionalRuntimePackages, registerAlias, registerAlias, registerCapability, registerIncorporatingCapabilities, registerMetric, registerNotification, registerNotification, registerOperationHandler, registerOperationHandler, registerOverrideModel, registerProxyController, registerReadOnlyAttribute, registerReadWriteAttribute, registerRequirements, unregisterAlias, unregisterAttribute, unregisterNotification, unregisterOperationHandler, unregisterOverrideModel, unregisterProxyController, unregisterSubModel
  • Constructor Details

    • ContextualResourceRegistration

      public ContextualResourceRegistration(org.jboss.as.controller.registry.ManagementResourceRegistration 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()