Class ShallowResourceDefinition

java.lang.Object
org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinition
org.jboss.as.controller.SimpleResourceDefinition
org.jboss.as.controller.PersistentResourceDefinition
org.wildfly.extension.messaging.activemq.shallow.ShallowResourceDefinition
All Implemented Interfaces:
org.jboss.as.controller.Feature, org.jboss.as.controller.ResourceDefinition, org.jboss.as.controller.ResourceRegistration, IgnoredAttributeProvider, OperationAddressConverter
Direct Known Subclasses:
BroadcastGroupDefinition, DiscoveryGroupDefinition

public abstract class ShallowResourceDefinition extends org.jboss.as.controller.PersistentResourceDefinition implements OperationAddressConverter, IgnoredAttributeProvider
Author:
Emmanuel Hugonnet (c) 2019 Red Hat, Inc.
  • Nested Class Summary

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

    org.jboss.as.controller.SimpleResourceDefinition.Parameters

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

    org.jboss.as.controller.ResourceDefinition.AbstractConfigurator<C extends org.jboss.as.controller.ResourceDefinition.Configurator<C>>, org.jboss.as.controller.ResourceDefinition.Builder, org.jboss.as.controller.ResourceDefinition.Configurator<C extends org.jboss.as.controller.ResourceDefinition.Configurator<C>>, org.jboss.as.controller.ResourceDefinition.MinimalBuilder, org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinition

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

    org.jboss.as.controller.ResourceRegistration.DefaultResourceRegistration
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final boolean
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ShallowResourceDefinition(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters, boolean registerRuntimeOnly)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract boolean
    isUsingSocketBinding(org.jboss.as.controller.PathAddress targetAddress)
     
    void
    registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry)
     
    void
    registerOperations(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
     
    protected void
    validateOperation(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress targetAddress, org.jboss.dmr.ModelNode translatedOperation)
    This provides more informative message when a user tries to undefine attribute that is required by the jgroups-discovery-group or socket-discovery-group resources (while it hasn't been required on the original discovery-group resource).

    Methods inherited from class org.jboss.as.controller.PersistentResourceDefinition

    getAttributes, getChildren, registerChildren

    Methods inherited from class org.jboss.as.controller.SimpleResourceDefinition

    getAddOperationParameters, getDeprecationData, getFlagsSet, getResourceDescriptionResolver, registerAdditionalRuntimePackages, registerAddOperation, registerAddOperation, registerCapabilities, registerNotifications, registerRemoveOperation, registerRemoveOperation, setDeprecated

    Methods inherited from class org.jboss.as.controller.ResourceDefinition.MinimalResourceDefinition

    getAccessConstraints, getDescriptionProvider, getMaxOccurs, getMinOccurs, getPathElement, getStability, isFeature, isOrderedChild, isRuntime

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface org.wildfly.extension.messaging.activemq.shallow.IgnoredAttributeProvider

    getIgnoredAttributes

    Methods inherited from interface org.wildfly.extension.messaging.activemq.shallow.OperationAddressConverter

    convert
  • Field Details

    • registerRuntimeOnly

      protected final boolean registerRuntimeOnly
  • Constructor Details

    • ShallowResourceDefinition

      public ShallowResourceDefinition(org.jboss.as.controller.SimpleResourceDefinition.Parameters parameters, boolean registerRuntimeOnly)
  • Method Details

    • registerOperations

      public void registerOperations(org.jboss.as.controller.registry.ManagementResourceRegistration resourceRegistration)
      Specified by:
      registerOperations in interface org.jboss.as.controller.ResourceDefinition
      Overrides:
      registerOperations in class org.jboss.as.controller.SimpleResourceDefinition
    • registerAttributes

      public void registerAttributes(org.jboss.as.controller.registry.ManagementResourceRegistration registry)
      Specified by:
      registerAttributes in interface org.jboss.as.controller.ResourceDefinition
      Overrides:
      registerAttributes in class org.jboss.as.controller.PersistentResourceDefinition
    • validateOperation

      protected void validateOperation(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.PathAddress targetAddress, org.jboss.dmr.ModelNode translatedOperation) throws org.jboss.as.controller.OperationFailedException
      This provides more informative message when a user tries to undefine attribute that is required by the jgroups-discovery-group or socket-discovery-group resources (while it hasn't been required on the original discovery-group resource).
      Parameters:
      context -
      targetAddress -
      translatedOperation -
      Throws:
      org.jboss.as.controller.OperationFailedException
    • isUsingSocketBinding

      protected abstract boolean isUsingSocketBinding(org.jboss.as.controller.PathAddress targetAddress)