Class CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder

java.lang.Object
org.jboss.as.controller.CapabilityReferenceRecorder.ContextDependencyRecorder
org.jboss.as.controller.CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder
All Implemented Interfaces:
CapabilityReferenceRecorder, Feature
Enclosing interface:
CapabilityReferenceRecorder

public static class CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder extends CapabilityReferenceRecorder.ContextDependencyRecorder
CapabilityReferenceRecorder that determines the dependent capability from the OperationContext and any additional attributes on same resource. This assumes that the resource registration associated with currently executing step will expose a capability set including one and only one capability. This recorder cannot be used with attributes associated with resources that do not meet this requirement.
  • Method Details

    • getDependentCapability

      protected RuntimeCapability getDependentCapability(OperationContext context)
    • getRequirementName

      protected String getRequirementName(OperationContext context, Resource resource, String attributeValue)
      Overrides:
      getRequirementName in class CapabilityReferenceRecorder.ContextDependencyRecorder
    • getRequirementPatternSegments

      public String[] getRequirementPatternSegments(String dynamicElement, PathAddress address)
      Description copied from interface: CapabilityReferenceRecorder
      Returns the elements to be added to the baseRequirementName to build the capability name pattern. It will return an array of the form `segment[.segment]` where each segment represents either the name of one of the resource's attributes or one of the keys in the resource's address. In the actual name the attribute name or address key will be replaced by the value associated with that attribute or key.
      Parameters:
      dynamicElement - the name of the attribute.
      address - the registration address of the resource definition that has the capability and its requirement. N.B. This parameter is only specified in association with a ResourcDefinition. When associated with an AttributeDefinition, address will always be PathAddress.EMPTY_ADDRESS.
      Returns:
      the elements to be added to the baseRequirementName to build the capability name pattern.