You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2014/11/26 14:32:12 UTC

[jira] [Created] (SLING-4199) Remove ProviderOutcome

Konrad Windszus created SLING-4199:
--------------------------------------

             Summary: Remove ProviderOutcome
                 Key: SLING-4199
                 URL: https://issues.apache.org/jira/browse/SLING-4199
             Project: Sling
          Issue Type: Improvement
          Components: Extensions
            Reporter: Konrad Windszus
             Fix For: Scripting Sightly Engine 1.0.0


What is the reason for having the {{ProviderOutcome}} interface (https://github.com/fmeschbe/sling/blob/trunk/contrib/scripting/sightly/engine/src/main/java/org/apache/sling/scripting/sightly/use/ProviderOutcome.java).

To me it seems like it acts as a wrapper around a boolean and an Object. But since in the case of failure there is never an Object being returned, why can't we just rely on the Object instead and just assume a failure in case null was returned?



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