Felix Meschberger wrote:
Hi,

Am Mittwoch, den 27.02.2008, 09:31 -0800 schrieb Carsten Ziegeler
(JIRA):
A script gets a service locator in the form of the sling script helper passed 
into. Currently this locator is
using the bundle context of the scripting resolver bundle to resolve services.
The bundle context of the script should be used instead.

The question is probably, how to get a the BundleContext:

:) Yes, that's why I didn't implement it yet :)
Perhaps it's not that important to achieve this?

  * What is the bundle context of a script stored in the JCR
repository ?
If the script has been added by a bundle (through the included content) we could perhaps set a property indicating to which bundle this script belongs? I'm not sure if this opens possible misuse.


  * How to get at the bundle context (or the bundle) for scripts
provided by bundles ?
In this case we should have a ServiceReference and can get the bundle from there. Or am I missing something?

Carsten

--
Carsten Ziegeler
[EMAIL PROTECTED]

Reply via email to