Interface ResourceCapabilityReference<T>
- Type Parameters:
T- the requirement type
- All Superinterfaces:
CapabilityReference<T>,org.jboss.as.controller.CapabilityReferenceRecorder,CapabilityReferenceResolver<T>,org.jboss.as.controller.Feature,ResourceModelResolver<ServiceDependency<T>>,ResourceResolver<ServiceDependency<T>>
- All Known Subinterfaces:
ResourceCapabilityReferenceRecorder<T>
- All Known Implementing Classes:
ResourceCapabilityReference.AbstractResourceCapabilityServiceDescriptorReference,ResourceCapabilityReference.ResourceCapabilityServiceDescriptorReference,ResourceCapabilityReferenceRecorder.ResourceCapabilityServiceDescriptorReference
public interface ResourceCapabilityReference<T>
extends CapabilityReference<T>, ResourceModelResolver<ServiceDependency<T>>
A
CapabilityReference specialization that records requirements of a resource, rather than an attribute.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfacestatic classstatic interfacestatic classNested classes/interfaces inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference
CapabilityReference.AbstractServiceDescriptorReference<T>, CapabilityReference.GrandparentAttributeProvider<T>, CapabilityReference.GrandparentPathProvider<T>, CapabilityReference.GreatGrandparentAttributeProvider<T>, CapabilityReference.GreatGrandparentPathProvider<T>, CapabilityReference.ParentAttributeProvider<T>, CapabilityReference.ParentPathProvider<T>, CapabilityReference.RequirementNameSegmentResolver, CapabilityReference.ServiceDescriptorReference<T>Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
org.jboss.as.controller.CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.ContextDependencyRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource) Registers capability requirements for the specified resource.default voidaddCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... attributeValues) static <T> ResourceCapabilityReference.NaryBuilder<T>builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.Builder<T>builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T>builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T>builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T>builder(org.jboss.as.controller.capability.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.Returns the resolver of the requirement name from a path address.voidremoveCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource) Unregisters capability requirements for the specified resource.default voidremoveCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... attributeValues) Methods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReference
getBaseDependentName, getBaseRequirementName, getDependentMethods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
getRequirementPatternSegments, isDynamicDependentMethods inherited from interface org.wildfly.subsystem.resource.capability.CapabilityReferenceResolver
getRequirement, resolveMethods inherited from interface org.jboss.as.controller.Feature
getStabilityMethods inherited from interface org.wildfly.subsystem.resource.ResourceModelResolver
resolve, resolve
-
Method Details
-
getRequirementNameResolver
Returns the resolver of the requirement name from a path address.- Returns:
- a requirement name resolver
-
addCapabilityRequirements
void addCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource) Registers capability requirements for the specified resource.- Parameters:
context- the contextresource- the resource on which requirements are gathered
-
removeCapabilityRequirements
void removeCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource) Unregisters capability requirements for the specified resource.- Parameters:
context- the contextresource- the resource on which requirements were gathered
-
addCapabilityRequirements
default void addCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... attributeValues) - Specified by:
addCapabilityRequirementsin interfaceorg.jboss.as.controller.CapabilityReferenceRecorder
-
removeCapabilityRequirements
default void removeCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... attributeValues) - Specified by:
removeCapabilityRequirementsin interfaceorg.jboss.as.controller.CapabilityReferenceRecorder
-
builder
static <T> ResourceCapabilityReference.Builder<T> builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T> builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T> builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T> builder(org.jboss.as.controller.capability.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> ResourceCapabilityReference.NaryBuilder<T> builder(org.jboss.as.controller.capability.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
-