You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2011/01/28 10:05:53 UTC

[jira] Closed: (SLING-1423) Simplify Standalone script execution

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

Carsten Ziegeler closed SLING-1423.
-----------------------------------


> Simplify Standalone script execution
> ------------------------------------
>
>                 Key: SLING-1423
>                 URL: https://issues.apache.org/jira/browse/SLING-1423
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: JCR Resource 2.0.8
>
>
> Executing a Sling script in standalone mode (i.e. without request/response) should be as simple as:
> Resource = ...
> SlingScript script = resource.adaptTo(SlingScript.class);
> SlingBindings bindings = new SlingBindings();
> ...add values to bindings
> script.eval(bindings);
> Currently this does not work, and we should add tests for that once it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.