Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Passing an <osgi:reference> to as a constructor argument Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
Working...
X