Interface ResourceCapabilityReferenceRecorder.Builder<T>

    • 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 registration
        predicate - conditionally determines whether to require this capability, depending on the resolve value of the specified attribute
        Returns:
        a reference to this builder