-
Dec 3rd, 2010, 01:13 PM
#1
Passing an <osgi:reference> to as a constructor argument
All,
I'm attempting to pass a service reference as a <constructor-arg>. However, springDM is giving me an error stating my service reference isn't a bean. So, how do i convert my service reference into a bean?
Currently, when injecting the service I use this:
<property name="controller">
<osgi:reference interface="myApp.controllerIfc"/>
</property>
Is there a similar syntax for passing an osgi reference as a constructor arg? Or, do I need to create a bean from my service? Any help would be greatly appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules