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 classCapabilityReferenceRecorder.CapabilityServiceDescriptorReferenceRecorder<T>-
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 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.static <T> CapabilityReferenceRecorder<T>of(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<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> parentPathResolver)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement, AttributeDefinition parentAttribute)Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.static <T> CapabilityReferenceRecorder<T>of(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<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> greatGrandparentPathResolver, Function<PathAddress,PathElement> grandparentPathResolver, Function<PathAddress,PathElement> parentPathResolver)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement, AttributeDefinition greatGrandparentAttribute, AttributeDefinition grandparentAttribute, AttributeDefinition parentAttribute)Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.static <T> CapabilityReferenceRecorder<T>of(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<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> grandparentPathResolver, Function<PathAddress,PathElement> parentPathResolver)Creates a new reference between the specified capability and the specified requirement.static <T> CapabilityReferenceRecorder<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement, AttributeDefinition grandparentAttribute, AttributeDefinition parentAttribute)Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.static <T> CapabilityReferenceRecorder<T>of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)Creates a new reference between the specified capability and the specified requirement.-
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
-
of
static <T> CapabilityReferenceRecorder<T> of(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
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementassociated with the resource with which this attribute is referenced.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> parentPathResolver)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementreturned by the specified resolver- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilityparentPathResolver- resolver of the path containing the first segment of the requirement name
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement, AttributeDefinition parentAttribute)
Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilityparentAttribute- the attribute from which the parent segment of the requirement name is derived
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementassociated with the resource with which this attribute is referenced.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> grandparentPathResolver, Function<PathAddress,PathElement> parentPathResolver)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementreturned by the specified resolver- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilitygrandparentPathResolver- resolver of the path containing the first segment of the requirement nameparentPathResolver- resolver of the path containing the second segment of the requirement name
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement, AttributeDefinition grandparentAttribute, AttributeDefinition parentAttribute)
Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilitygrandparentAttribute- the attribute from which the first segment of the requirement name is derivedparentAttribute- the attribute from which the second segment of the requirement name is derived
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementassociated with the resource with which this attribute is referenced.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capability
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement, Function<PathAddress,PathElement> greatGrandparentPathResolver, Function<PathAddress,PathElement> grandparentPathResolver, Function<PathAddress,PathElement> parentPathResolver)
Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from thePathElementreturned by the specified resolver- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilitygreatGrandparentPathResolver- resolver of the path containing the first segment of the requirement namegrandparentPathResolver- resolver of the path containing the second segment of the requirement nameparentPathResolver- resolver of the path containing the third segment of the requirement name
-
of
static <T> CapabilityReferenceRecorder<T> of(RuntimeCapability<Void> capability, org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement, AttributeDefinition greatGrandparentAttribute, AttributeDefinition grandparentAttribute, AttributeDefinition parentAttribute)
Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specifiedAttributeDefinition.- Parameters:
capability- the capability referencing the specified requirementrequirement- the requirement of the specified capabilitygreatGrandparentAttribute- the attribute from which the first segment of the requirement name is derivedgrandparentAttribute- the attribute from which the second segment of the requirement name is derivedparentAttribute- the attribute from which the third segment of the requirement name is derived
-
-