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

Bertrand Delacretaz commented on SLING-3543:
--------------------------------------------

BindingsValuesProvidersByContext would work if you know which context values 
are available, so you probably need to enumerate all BindingsValuesProviders to 
find out anyway.

As Justin says, the BVPs do not expose their list of variables, you'll probably 
need to call their addBindings method with a fake Bindings object to find out. 
But some variables depend on others, the JcrObjectsBindingsValuesProvider for 
example does nothing if it doesn't find a "resource" variable in its Bindings, 
that adapts to a Node. So getting the list of variables in this way might be 
tricky.

> Provide a Felix Web Console Tab exposing the available Scripting Variables
> --------------------------------------------------------------------------
>
>                 Key: SLING-3543
>                 URL: https://issues.apache.org/jira/browse/SLING-3543
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Scripting Core 2.0.26
>            Reporter: Konrad Windszus
>
> Currently you can very dynamically define the scripting variables 
> (https://cwiki.apache.org/confluence/display/SLING/Adding+New+Scripting+Variables).
>  Therefore it would be very good to expose which variables are exposed within 
> each script provider in a dedicated web console tab.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to