Blueprint missing @ServiceReference annotation [message #903204] |
Wed, 22 August 2012 09:48  |
Eclipse User |
|
|
|
Spring DM had @ServiceReference annotation alternative to XML service injection which was really nice. The problem is that this annotation is nowhere to be found with blueprint release.
I know that they state that "The plans for the Maven archetype and annotation extension are undefined for the moment." is reasonable explanation, but for some reason some of the references are still existing such as "org.eclipse.gemini.blueprint.extensions.annotation" package use can be found from multiple sources except the .jar itself that contains it. For example "org.eclipse.gemini.blueprint.extender.internal.support.OsgiAnnotationPostProcessor" tries to load "org.eclipse.gemini.blueprint.extensions.annotation.ServiceReferenceInjectionBeanPostProcessor" class which was used for Spring DM only the base package is renamed.
I also tried to add old spring.osgi core, extender and io bundles to get the annotations working but that resulted in massive "Required 'bundleContext' property was not set." exceptions.
Server: Virgo 3.5.0
My question is: how am I supposed to make it work without that annotation (I don't want to go back to XML configuration, defeats the purpose of having Spring 3)?
|
|
|
|
|
|
Re: Blueprint missing @ServiceReference annotation [message #1072295 is a reply to message #903415] |
Mon, 22 July 2013 09:27  |
Eclipse User |
|
|
|
I'd like to use your ServiceReference annotation, but I need some more information, because in my setup it is ignored.
The extensions bundle is in state active, as expected, and I have a bean using @ServiceReference for a valid OSGi Service, but it's not injected.
What else do I have to do in order to let Spring do the postprocessing?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03395 seconds