Interface ResourceCapabilityReferenceRecorder.Builder<T>
-
- All Known Subinterfaces:
ResourceCapabilityReferenceRecorder.NaryBuilder<T>
- All Known Implementing Classes:
ResourceCapabilityReferenceRecorder.DefaultBuilder
- Enclosing interface:
- ResourceCapabilityReferenceRecorder<T>
public static interface ResourceCapabilityReferenceRecorder.Builder<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceCapabilityReferenceRecorder<T>build()Builds the configured capability reference recorder.ResourceCapabilityReferenceRecorder.Builder<T>when(AttributeDefinition attribute, Predicate<org.jboss.dmr.ModelNode> predicate)Only reference the provided capability if value of the specified attribute complies with the specified predicate.
-
-
-
Method Detail
-
when
ResourceCapabilityReferenceRecorder.Builder<T> when(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
-
build
ResourceCapabilityReferenceRecorder<T> build()
Builds the configured capability reference recorder.- Returns:
- a capability reference recorder
-
-