Hi,

On Tuesday, January 7, 2014, Justin Edelson wrote:

> ...What I'm in the process of doing is
> changing the OSGiServiceInjector so that if the adaptable is a
> request, it uses SlingScriptHelper intead of the bundle context so at
> least the references are released if you use a request as the
> adaptable. But I don't see a good way to handle this otherwise. Any
> ideas?...

IIUC the general problem is making sure things are cleaned up when Sling is
done processing the current request - we might design a specific mechanism
for that. Maybe an object in the request attributes to which you can add
Callables that are executed at the end of a request?

Unless we have such a general mechanism already, but I don't think so.

-Bertrand

Reply via email to