Class ResourceCapabilityReferenceRecorder.Builder<T>
- java.lang.Object
-
- org.wildfly.subsystem.resource.capability.ResourceCapabilityReferenceRecorder.Builder<T>
-
- Enclosing interface:
- ResourceCapabilityReferenceRecorder<T>
public static class ResourceCapabilityReferenceRecorder.Builder<T> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete 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
public 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
-
build
public ResourceCapabilityReferenceRecorder<T> build()
Builds the configured capability reference recorder.- Returns:
- a capability reference recorder
-
-