|Blueprint missing @ServiceReference annotation [message #903204]
||Wed, 22 August 2012 13:48
| Erko Knoll
Registered: December 2011
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)?
Powered by FUDForum
. Page generated in 0.02320 seconds