On Tue, Aug 6, 2013 at 5:13 PM, Carsten Ziegeler <cziege...@apache.org> 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

Reply via email to