Mike Müller wrote: > Hi > > I'm working on the documentation and struggled over the > interface SlingScriptResolver. But I couldn't find any > use of this interface. Maybe that's a relict from the time > before Scripts are just Servlets? Today I think only the > ServletResolver interface is used, or am I wrong? > Hi,
yes, it's correct that the interface is currently not used inside Sling. And I guess there are only a few rare use cases for it. Basically you can use this service to script your OSGi service or parts of it, by looking up the SlingScript from within your service, and calling it. You could do the same with searching for the script resource yourself and adapting it to the ScriptHelper interface. It's more an utility method I think - therefore I think we have two options: a) keep the service b) deprecate the service and create an utility method Carsten -- Carsten Ziegeler [email protected]
