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.ResourceNameCompositeDependencyRecorder| Constructor and Description |
|---|
CompositeAttributeDependencyRecorder(RuntimeCapability capability,
String baseRequirementName,
AttributeDefinition... attributes) |
CompositeAttributeDependencyRecorder(String baseRequirementName,
AttributeDefinition... attributes) |
| Modifier and Type | Method and Description |
|---|---|
protected RuntimeCapability |
getDependentCapability(OperationContext context) |
protected String |
getRequirementName(OperationContext context,
Resource resource,
String attributeValue) |
addCapabilityRequirements, addCapabilityRequirements, getBaseDependentName, getBaseRequirementName, getDependentName, isDynamicDependent, processCapabilityRequirement, removeCapabilityRequirements, removeCapabilityRequirementspublic CompositeAttributeDependencyRecorder(String baseRequirementName, AttributeDefinition... attributes)
baseRequirementName - base requirement nameattributes - list of additional attributes on same resource that are used to dynamically construct name of capabilitypublic CompositeAttributeDependencyRecorder(RuntimeCapability capability, String baseRequirementName, AttributeDefinition... attributes)
capability - dependant capability, useful when resource provides more than single capability.baseRequirementName - base requirement nameattributes - list of additional attributes on same resource that are used to dynamically construct name of capabilityprotected RuntimeCapability getDependentCapability(OperationContext context)
getDependentCapability in class CapabilityReferenceRecorder.ContextDependencyRecorderprotected String getRequirementName(OperationContext context, Resource resource, String attributeValue)
getRequirementName in class CapabilityReferenceRecorder.ContextDependencyRecorderCopyright © 2017 JBoss by Red Hat. All rights reserved.