Interface ResourceCapabilityReference.Builder<T>
-
- All Known Subinterfaces:
ResourceCapabilityReference.NaryBuilder<T>,ResourceCapabilityReferenceRecorder.Builder<T>,ResourceCapabilityReferenceRecorder.NaryBuilder<T>
- All Known Implementing Classes:
ResourceCapabilityReference.DefaultBuilder,ResourceCapabilityReferenceRecorder.DefaultBuilder
- Enclosing interface:
- ResourceCapabilityReference<T>
public static interface ResourceCapabilityReference.Builder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ResourceCapabilityReference<T>build()Builds the configured capability reference recorder.default ResourceCapabilityReference.Builder<T>when(org.jboss.as.controller.AttributeDefinition attribute, Predicate<org.jboss.dmr.ModelNode> predicate)Only reference the provided capability if value of the specified attribute complies with the specified predicate.<V> ResourceCapabilityReference.Builder<T>when(ResourceResolver<V> resolver, Predicate<V> predicate)Only reference the provided capability if value of the specified attribute complies with the specified predicate.
-
-
-
Method Detail
-
when
default ResourceCapabilityReference.Builder<T> when(org.jboss.as.controller.AttributeDefinition attribute, Predicate<org.jboss.dmr.ModelNode> predicate)
Only reference the provided capability if value of the specified attribute complies with the specified predicate.- Parameters:
attribute- an attribute of the resource to use for conditional registrationpredicate- conditionally determines whether to require this capability, depending on the resolve value of the specified attribute- Returns:
- a reference to this builder
-
when
<V> ResourceCapabilityReference.Builder<T> when(ResourceResolver<V> resolver, Predicate<V> predicate)
Only reference the provided capability if value of the specified attribute complies with the specified predicate.- Parameters:
resolver- a resolver of the resource to use for conditional registrationpredicate- conditionally determines whether to require this capability, depending on the resolve value- Returns:
- a reference to this builder
-
build
ResourceCapabilityReference<T> build()
Builds the configured capability reference recorder.- Returns:
- a capability reference recorder
-
-