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

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

    [ https://issues.apache.org/jira/browse/SLING-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14226268#comment-14226268 ] 

Felix Meschberger commented on SLING-4199:
------------------------------------------

I think there are cases where returning null is probably a reasonable result and not a failure.

Maybe [~radu.cotescu] can comment.

> 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)