Interface ResourceCapabilityReference.Builder<T>

    • 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 registration
        predicate - 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 registration
        predicate - 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