Hi,
Alexander Saar wrote:
Hi all,
not sure if this is the right place to ask as this is somehow OSGi
related, but I'm currently working on a service that integrates via SCR
and tries which has a reference to the SlingRepository service.
I used the following code:
/**
* @scr.reference
*/
private SlingRepository repository;
protected void bindRepository(SlingRepository repository) {
this.repository = repository;
}
just as a minor improvement: you don't need to write the bind method,
the scr plugin will generate it for you (like it generates the unbind
method as well).
Apart from that, I think I've seen this problem in an older version of
the SCR implementation (not the plugin). The line numbers from your
stacktrace do not match latest from Felix svn. So I suggest to check
latest SCR first.
Carsten
--
Carsten Ziegeler
[EMAIL PROTECTED]