Interface ResourceCapabilityReferenceRecorder<T>
-
- All Superinterfaces:
CapabilityReferenceRecorder,CapabilityReferenceRecorder<T>,Feature
- All Known Implementing Classes:
ResourceCapabilityReferenceRecorder.AbstractResourceCapabilityServiceDescriptorReference,ResourceCapabilityReferenceRecorder.ResourceCapabilityServiceDescriptorReference
public interface ResourceCapabilityReferenceRecorder<T> extends CapabilityReferenceRecorder<T>
ACapabilityReferenceRecorderspecialization that records requirements of a resource, rather than an attribute.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classResourceCapabilityReferenceRecorder.AbstractResourceCapabilityServiceDescriptorReference<T>static interfaceResourceCapabilityReferenceRecorder.Builder<T>static classResourceCapabilityReferenceRecorder.DefaultBuilder<T>static interfaceResourceCapabilityReferenceRecorder.NaryBuilder<T>static classResourceCapabilityReferenceRecorder.ResourceCapabilityServiceDescriptorReference<T>-
Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder
-
Nested classes/interfaces inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReferenceRecorder
CapabilityReferenceRecorder.AbstractCapabilityServiceDescriptorReferenceRecorder<T>, CapabilityReferenceRecorder.CapabilityServiceDescriptorReferenceRecorder<T>, CapabilityReferenceRecorder.GrandparentAttributeProvider<T>, CapabilityReferenceRecorder.GrandparentPathProvider<T>, CapabilityReferenceRecorder.GreatGrandparentAttributeProvider<T>, CapabilityReferenceRecorder.GreatGrandparentPathProvider<T>, CapabilityReferenceRecorder.ParentAttributeProvider<T>, CapabilityReferenceRecorder.ParentPathProvider<T>, CapabilityReferenceRecorder.RequirementNameSegmentResolver
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddCapabilityRequirements(OperationContext context, Resource resource)Registers capability requirements for the specified resource.default voidaddCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)Creates a builder for a new reference between the specified capability and the specified requirement.static <T> ResourceCapabilityReferenceRecorder.Builder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.NullaryServiceDescriptor<T> requirement)Creates a builder for a new reference between the specified capability and the specified requirement.static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)Creates a builder for a new reference between the specified capability and the specified requirement.static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)Creates a builder for a new reference between the specified capability and the specified requirement.static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)Creates a builder for a new reference between the specified capability and the specified requirement.Function<PathAddress,String[]>getRequirementNameResolver()Returns the resolver of the requirement name from a path address.voidremoveCapabilityRequirements(OperationContext context, Resource resource)Unregisters capability requirements for the specified resource.default voidremoveCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)-
Methods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
getRequirementPatternSegments, isDynamicDependent
-
Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReferenceRecorder
getBaseDependentName, getBaseRequirementName, getDependent, getRequirement
-
Methods inherited from interface org.jboss.as.controller.Feature
getStability
-
-
-
-
Method Detail
-
getRequirementNameResolver
Function<PathAddress,String[]> getRequirementNameResolver()
Returns the resolver of the requirement name from a path address.- Returns:
- a requirement name resolver
-
addCapabilityRequirements
void addCapabilityRequirements(OperationContext context, Resource resource)
Registers capability requirements for the specified resource.- Parameters:
context- the contextresource- the resource on which requirements are gathered
-
removeCapabilityRequirements
void removeCapabilityRequirements(OperationContext context, Resource resource)
Unregisters capability requirements for the specified resource.- Parameters:
context- the contextresource- the resource on which requirements were gathered
-
addCapabilityRequirements
default void addCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
- Specified by:
addCapabilityRequirementsin interfaceCapabilityReferenceRecorder
-
removeCapabilityRequirements
default void removeCapabilityRequirements(OperationContext context, Resource resource, String attributeName, String... attributeValues)
- Specified by:
removeCapabilityRequirementsin interfaceCapabilityReferenceRecorder
-
builder
static <T> ResourceCapabilityReferenceRecorder.Builder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.NullaryServiceDescriptor<T> requirement)
Creates a builder for a new reference between the specified capability and the specified requirement.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
builder
static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)
Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the path of the current resource.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
builder
static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)
Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the parent and current resources, respectively.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilityrequirementNameResolver- function for resolving the dynamic components of the requirement name
-
builder
static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)
Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the grandparent, parent, and current resources, respectively.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilityrequirementNameResolver- function for resolving the dynamic components of the requirement name
-
builder
static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)
Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the great-grandparent, grandparent, parent, and current resources, respectively.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilityrequirementNameResolver- function for resolving the dynamic components of the requirement name
-
-