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 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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder -
Method Summary
Modifier and TypeMethodDescriptionprotected RuntimeCapabilitygetDependentCapability(OperationContext context) protected StringgetRequirementName(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, removeCapabilityRequirementsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
isDynamicDependentMethods inherited from interface org.jboss.as.controller.Feature
getStability
-
Method Details
-
getDependentCapability
-
getRequirementName
protected String getRequirementName(OperationContext context, Resource resource, String attributeValue) - Overrides:
getRequirementNamein classCapabilityReferenceRecorder.ContextDependencyRecorder
-
getRequirementPatternSegments
Description copied from interface:CapabilityReferenceRecorderReturns 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.
-