I guess this only works as you have a special script engine for health
check, right?

What if people want to use the same functionality if they write lets say
workflow scripts or wcm scripts etc?
As long as there is no way to make use of this in every script engine, I
don't see the point of adding it. It's a special requirement for hc, so it
should have a hc solution.


Carsten


2013/8/6 Bertrand Delacretaz <[email protected]>

> On Tue, Aug 6, 2013 at 5:13 PM, Carsten Ziegeler <[email protected]>
> wrote:
> > I'm not sure if I understand this 100% - from a scripting pov, how could
> I
> > set the usage value, let's say in a JSP (or any other script)?
>
> You set the usage property when you create a BindingsValuesProvider,
> so for my jmx example I'd do:
>
> @Service
> @Property(name="usage", value="healthcheck")
> public class BindingsValuesProvider {
>   public void addBindings(Bindings b) {
>     b.put("jmx", new SomeObjectThatsSeenAsJmxFromHealthCheckScripts());
>   }
> }
>
> that "jmx" object is then available in health check scripts, but not
> in general Sling rendering scripts.
>
> -Bertrand
>



-- 
Carsten Ziegeler
[email protected]

Reply via email to