public interface CapabilityReferenceRecorder
| Modifier and Type | Interface and Description |
|---|---|
static class |
CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder
CapabilityReferenceRecorder that determines the dependent capability from the OperationContext
and any additional attributes on same resource. |
static class |
CapabilityReferenceRecorder.ContextDependencyRecorder
CapabilityReferenceRecorder that determines the dependent capability from the OperationContext. |
static class |
CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder
Default implementation of
CapabilityReferenceRecorder. |
static class |
CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder
CapabilityReferenceRecorder that determines the dependent and required capability from the
PathAddress of the resource registration. |
| 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()
Deprecated.
No longer required and may throw
UnsupportedOperationException |
String |
getBaseRequirementName() |
default String[] |
getRequirementPatternSegments(String name,
PathAddress address)
Returns the elements to be added to the baseRequirementName to build the capability name pattern.
|
default boolean |
isDynamicDependent()
Deprecated.
No longer required and may throw
UnsupportedOperationException |
void |
removeCapabilityRequirements(OperationContext context,
Resource resource,
String attributeName,
String... attributeValues)
Deregisters capability requirement information from the given context.
|
void addCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
context - the contextresource - the resource on which requirements are gatheredattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain nullvoid removeCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
context - the contextresource - the resource on which requirements are gatheredattributeName - the name of the attributeattributeValues - the values of the attribute, which may contain null@Deprecated String getBaseDependentName()
UnsupportedOperationExceptionString getBaseRequirementName()
@Deprecated default boolean isDynamicDependent()
UnsupportedOperationExceptiondefault String[] getRequirementPatternSegments(String name, PathAddress address)
name - the name of the attribute.address - the registration address of the resource definition that has the capability and its requirement.Copyright © 2019 JBoss by Red Hat. All rights reserved.