public static class CapabilityReferenceRecorder.ContextDependencyRecorder extends Object implements CapabilityReferenceRecorder
CapabilityReferenceRecorder that determines the dependent capability from
the OperationContext. 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.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder| Constructor and Description |
|---|
ContextDependencyRecorder(String baseRequirementName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCapabilityRequirements(OperationContext context,
String attributeName,
String... attributeValues)
Registers capability requirement information to the given context.
|
String |
getBaseDependentName()
|
String |
getBaseRequirementName() |
boolean |
isDynamicDependent()
|
void |
removeCapabilityRequirements(OperationContext context,
String attributeName,
String... attributeValues)
Deregisters capability requirement information from the given context.
|
public ContextDependencyRecorder(String baseRequirementName)
public final void addCapabilityRequirements(OperationContext context, String attributeName, String... attributeValues)
addCapabilityRequirements in interface CapabilityReferenceRecordercontext - the contextattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain nullAssertionError - if the requirements discussed in the class javadoc are not fulfilledpublic final void removeCapabilityRequirements(OperationContext context, String attributeName, String... attributeValues)
removeCapabilityRequirements in interface CapabilityReferenceRecordercontext - the contextattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain nullAssertionError - if the requirements discussed in the class javadoc are not fulfilledpublic String getBaseDependentName()
getBaseDependentName in interface CapabilityReferenceRecorderpublic String getBaseRequirementName()
getBaseRequirementName in interface CapabilityReferenceRecorderpublic boolean isDynamicDependent()
isDynamicDependent in interface CapabilityReferenceRecorderCopyright © 2017 JBoss by Red Hat. All rights reserved.