AbstractServiceRegistryImpl#applyInjections(R) loops over a Service's methods to find instances of @InjectService. An example of usage: AbstractEhcacheRegionFactory#setClassLoaderService(ClassLoaderService).
In OSGi, applyInjections is able to find all of the Service's methods, but the annotation discovery fails. What's confusing is that applyInjections has the actual Class given by the Strategy, so the ehcache CL should be available. Is only the hibernate-core CL used since @InjectService resides there?
|