Class ComposumModelsUseProvider

  • All Implemented Interfaces:
    org.apache.sling.scripting.sightly.use.UseProvider

    public class ComposumModelsUseProvider
    extends Object
    implements org.apache.sling.scripting.sightly.use.UseProvider
    HTL UseProvider which will instantiate a referenced Sling Model from a BeanContext. This supplements the SlingModelsUseProvider for use with Composum models. It has to have a higher service ranking, because SlingModelsProvider throws when the object is a model but cannot be adapted from request or resource.
    Author:
    Hans-Peter Stoerr
    See Also:
    SlingModelsUseProvider
    • Constructor Detail

      • ComposumModelsUseProvider

        public ComposumModelsUseProvider()
    • Method Detail

      • provide

        public org.apache.sling.scripting.sightly.use.ProviderOutcome provide​(String identifier,
                                                                              org.apache.sling.scripting.sightly.render.RenderContext renderContext,
                                                                              Bindings arguments)
        Specified by:
        provide in interface org.apache.sling.scripting.sightly.use.UseProvider