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.CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder| Modifier and Type | Method and Description |
|---|---|
protected RuntimeCapability |
getDependentCapability(OperationContext context) |
protected String |
getRequirementName(OperationContext context,
Resource resource,
String attributeValue) |
String[] |
getRequirementPatternSegments(String dynamicElement,
PathAddress address)
Returns the elements to be added to the baseRequirementName to build the capability name pattern.
|
addCapabilityRequirements, getBaseDependentName, getBaseRequirementName, removeCapabilityRequirementsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDynamicDependentprotected RuntimeCapability getDependentCapability(OperationContext context)
protected String getRequirementName(OperationContext context, Resource resource, String attributeValue)
getRequirementName in class CapabilityReferenceRecorder.ContextDependencyRecorderpublic String[] getRequirementPatternSegments(String dynamicElement, PathAddress address)
CapabilityReferenceRecorderdynamicElement - the name of the attribute.address - the registration address of the resource definition that has the capability and its requirement.Copyright © 2022 JBoss by Red Hat. All rights reserved.