Package org.jboss.as.controller
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 theOperationContext
and any additional attributes on same resource. This assumes that theresource registration associated with currently executing step
will expose acapability set
including one and only one capability. This recorder cannot be used with attributes associated with resources that do not meet this requirement.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class org.jboss.as.controller.CapabilityReferenceRecorder.ContextDependencyRecorder
addCapabilityRequirements, getBaseDependentName, getBaseRequirementName, removeCapabilityRequirements
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
isDynamicDependent
-
Methods inherited from interface org.jboss.as.controller.Feature
getStability
-
-
-
-
Method Detail
-
getDependentCapability
protected RuntimeCapability getDependentCapability(OperationContext context)
-
getRequirementName
protected String getRequirementName(OperationContext context, Resource resource, String attributeValue)
- Overrides:
getRequirementName
in classCapabilityReferenceRecorder.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 bePathAddress.EMPTY_ADDRESS
.- Returns:
- the elements to be added to the baseRequirementName to build the capability name pattern.
-
-