Class SimpleMapAttributeDefinition

    • Method Detail

      • addCapabilityRequirements

        public void addCapabilityRequirements​(OperationContext context,
                                              Resource resource,
                                              org.jboss.dmr.ModelNode attributeValue)
        Description copied from class: AttributeDefinition
        Based on the given attribute value, add capability requirements. If this definition is for an attribute whose value is or contains a reference to the name of some capability, this method should record the addition of a requirement for the capability.

        This is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.

        Overrides:
        addCapabilityRequirements in class AttributeDefinition
        Parameters:
        context - the operation context
        resource - the resource on which requirements are gathered
        attributeValue - the value of the attribute described by this object
      • removeCapabilityRequirements

        public void removeCapabilityRequirements​(OperationContext context,
                                                 Resource resource,
                                                 org.jboss.dmr.ModelNode attributeValue)
        Description copied from class: AttributeDefinition
        Based on the given attribute value, remove capability requirements. If this definition is for an attribute whose value is or contains a reference to the name of some capability, this method should record the removal of a requirement for the capability.

        This is a no-op in this base class. Subclasses that support attribute types that can represent capability references should override this method.

        Overrides:
        removeCapabilityRequirements in class AttributeDefinition
        Parameters:
        context - the operation context
        resource - resource from which capability requirement is to be removed from, null is legal value in case that CapabilityReferenceRecorder doesn't require it.
        attributeValue - the value of the attribute described by this object