Interface UseProvider


  • @ConsumerType
    public interface UseProvider

    A UseProvider instantiates objects for the Use-API.

    • Method Detail

      • provide

        ProviderOutcome provide​(java.lang.String identifier,
                                RenderContext renderContext,
                                javax.script.Bindings arguments)
        Provide an instance based on the given identifier
        Parameters:
        identifier - the identifier of the dependency
        renderContext - the current rendering context
        arguments - specific arguments provided by the use plugin
        Returns:
        a container with the instance that corresponds to the identifier; if the identifier cannot be handled by this provider, a failed outcome is returned.