[ 
https://issues.apache.org/jira/browse/SLING-5036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Cotescu closed SLING-5036.
-------------------------------

> Optimise the ModelsFactoryUseProvider to fail as early as possible if it 
> cannot provide an object
> -------------------------------------------------------------------------------------------------
>
>                 Key: SLING-5036
>                 URL: https://issues.apache.org/jira/browse/SLING-5036
>             Project: Sling
>          Issue Type: Bug
>    Affects Versions: Scripting Sightly Models Use Provider 1.0.0
>            Reporter: Radu Cotescu
>            Assignee: Radu Cotescu
>             Fix For: Scripting Sightly Models Use Provider 1.0.0
>
>
> The 
> {{org.apache.sling.scripting.sightly.models.impl.ModelsFactoryUseProvider}} 
> should be further optimised to fail as early as possible if it cannot load a 
> Sling Model, which means that it should check if the provided identifier 
> pattern matches a Java class name pattern.
> Also some lazy bindings retrieval should be done in order to save time - the 
> {{Resource}} object should only be retrieved if the object is not adaptable 
> from {{SlingHttpServletRequest}}.
> At the same time a rename of the class should be done, to properly reflect 
> its purpose: {{ModelsFactoryUseProvider}} -> {{SlingModelsUseProvider}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to