Interface CapabilityReferenceRecorder<T>
-
- All Superinterfaces:
CapabilityReferenceRecorder,Feature
- All Known Subinterfaces:
ResourceCapabilityReferenceRecorder<T>
- All Known Implementing Classes:
CapabilityReferenceRecorder.AbstractCapabilityServiceDescriptorReferenceRecorder,CapabilityReferenceRecorder.CapabilityServiceDescriptorReferenceRecorder,ResourceCapabilityReferenceRecorder.AbstractResourceCapabilityServiceDescriptorReference,ResourceCapabilityReferenceRecorder.ResourceCapabilityServiceDescriptorReference
public interface CapabilityReferenceRecorder<T> extends CapabilityReferenceRecorder
ACapabilityReferenceRecorderwhose requirement is specified as aServiceDescriptor.- Author:
- Paul Ferraro
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCapabilityReferenceRecorder.AbstractCapabilityServiceDescriptorReferenceRecorder<T>static interfaceCapabilityReferenceRecorder.Builder<T>static classCapabilityReferenceRecorder.CapabilityServiceDescriptorReferenceRecorder<T>static classCapabilityReferenceRecorder.DefaultBuilder<T>static interfaceCapabilityReferenceRecorder.GrandparentAttributeProvider<T>static interfaceCapabilityReferenceRecorder.GrandparentPathProvider<T>static interfaceCapabilityReferenceRecorder.GreatGrandparentAttributeProvider<T>static interfaceCapabilityReferenceRecorder.GreatGrandparentPathProvider<T>static interfaceCapabilityReferenceRecorder.ParentAttributeProvider<T>static interfaceCapabilityReferenceRecorder.ParentPathProvider<T>static interfaceCapabilityReferenceRecorder.RequirementNameSegmentResolver-
Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, CapabilityReferenceRecorder.ContextDependencyRecorder, CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static <T> CapabilityReferenceRecorder.ParentPathProvider<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder.GreatGrandparentPathProvider<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder.GrandparentPathProvider<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder.Builder<T>builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)Creates a new reference between the specified capability and the specified requirement.default StringgetBaseDependentName()default StringgetBaseRequirementName()RuntimeCapability<Void>getDependent()Returns the dependent capability.org.wildfly.service.descriptor.ServiceDescriptor<T>getRequirement()Returns the service descriptor required by the dependent capability.-
Methods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder
addCapabilityRequirements, getRequirementPatternSegments, isDynamicDependent, removeCapabilityRequirements
-
Methods inherited from interface org.jboss.as.controller.Feature
getStability
-
-
-
-
Method Detail
-
getDependent
RuntimeCapability<Void> getDependent()
Returns the dependent capability.- Returns:
- a capability
-
getRequirement
org.wildfly.service.descriptor.ServiceDescriptor<T> getRequirement()
Returns the service descriptor required by the dependent capability.- Returns:
- a service descriptor
-
getBaseRequirementName
default String getBaseRequirementName()
- Specified by:
getBaseRequirementNamein interfaceCapabilityReferenceRecorder
-
getBaseDependentName
default String getBaseDependentName()
- Specified by:
getBaseDependentNamein interfaceCapabilityReferenceRecorder
-
builder
static <T> CapabilityReferenceRecorder.Builder<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)
Creates 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> CapabilityReferenceRecorder.ParentPathProvider<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. By default, the requirement's parent segment derives from the path of the current resource.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
builder
static <T> CapabilityReferenceRecorder.GrandparentPathProvider<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. By default, the requirement's grandparent and parent segments derive from the path of the parent and current resources, respectively.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
builder
static <T> CapabilityReferenceRecorder.GreatGrandparentPathProvider<T> builder(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. By default, the requirement's great-grandparent, grandparent, and parent segments derive from the path of the grandparent, parent, and current resources, respectively.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
-