public static class CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder extends Object implements CapabilityReferenceRecorder
CapabilityReferenceRecorder. Derives the required
capability name from the baseRequirementName provided to the constructor and from the attribute value.
Derives the dependent capability name from the baseDependentName provided to the constructor, and, if the
dependent name is dynamic, from the address of the resource currently being processed.CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder| Modifier and Type | Method and Description |
|---|---|
void |
addCapabilityRequirements(OperationContext context,
Resource resource,
String attributeName,
String... attributeValues)
Registers capability requirement information to the given context.
|
String |
getBaseDependentName() |
String |
getBaseRequirementName() |
void |
removeCapabilityRequirements(OperationContext context,
Resource resource,
String attributeName,
String... attributeValues)
Deregisters capability requirement information from the given context.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRequirementPatternSegments, isDynamicDependentpublic final void addCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
CapabilityReferenceRecorderaddCapabilityRequirements in interface CapabilityReferenceRecordercontext - the contextresource - the resource on which requirements are gatheredattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain nullpublic final void removeCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
CapabilityReferenceRecorderremoveCapabilityRequirements in interface CapabilityReferenceRecordercontext - the contextresource - the resource on which requirements are gatheredattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain nullpublic String getBaseDependentName()
getBaseDependentName in interface CapabilityReferenceRecorderpublic String getBaseRequirementName()
getBaseRequirementName in interface CapabilityReferenceRecorderCopyright © 2018 JBoss by Red Hat. All rights reserved.