Class CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder

    • Method Detail

      • 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.