Interface ResourceCapabilityReferenceRecorder.Builder<T>

    • Method Detail

      • when

        ResourceCapabilityReferenceRecorder.Builder<T> when​(org.jboss.as.controller.AttributeDefinition attribute,
                                                            Predicate<org.jboss.dmr.ModelNode> predicate)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Only reference the provided capability if value of the specified attribute complies with the specified predicate.
        Specified by:
        when in interface ResourceCapabilityReference.Builder<T>
        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