Interface CapabilityReferenceResolver<T>
- Type Parameters:
T- the requirement type
- All Known Subinterfaces:
CapabilityReference<T>,CapabilityReferenceRecorder<T>,ResourceCapabilityReference<T>,ResourceCapabilityReferenceRecorder<T>
- All Known Implementing Classes:
CapabilityReference.AbstractServiceDescriptorReference,CapabilityReference.ServiceDescriptorReference,CapabilityReferenceRecorder.CapabilityServiceDescriptorReferenceRecorder,ResourceCapabilityReference.AbstractResourceCapabilityServiceDescriptorReference,ResourceCapabilityReference.ResourceCapabilityServiceDescriptorReference,ResourceCapabilityReferenceRecorder.ResourceCapabilityServiceDescriptorReference
public interface CapabilityReferenceResolver<T>
Resolves a capability reference.
-
Method Summary
Modifier and TypeMethodDescriptionorg.wildfly.service.descriptor.ServiceDescriptor<T>Returns the service descriptor required by the dependent capability.resolve(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String value) Resolves the dynamic segments of this capability reference.
-
Method Details
-
getRequirement
org.wildfly.service.descriptor.ServiceDescriptor<T> getRequirement()Returns the service descriptor required by the dependent capability.- Returns:
- a service descriptor
-
resolve
Map.Entry<String,String[]> resolve(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String value) Resolves the dynamic segments of this capability reference.- Parameters:
context- an operation contextresource- the resourcevalue- the attribute value- Returns:
- a map entry containing the requirement name and array of dynamic name segments
-