reference in argument doesn't work
----------------------------------
Key: ARIES-288
URL: https://issues.apache.org/jira/browse/ARIES-288
Project: Aries
Issue Type: Bug
Components: Blueprint
Affects Versions: 0.1
Reporter: David Jencks
This doesn't work:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<bean class="org.apache.yoko.osgi.locator.ServiceBean"
activation="eager"
init-method="start"
destroy-method="stop">
<argument>
<reference interface="org.apache.yoko.osgi.locator.Register"
component-name="yokoRegistryBean"/>
</argument>
</bean>
...
You have to make the reference top level and use a ref to it:
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<reference id="register" interface="org.apache.yoko.osgi.locator.Register"
component-name="yokoRegistryBean"/>
<bean class="org.apache.yoko.osgi.locator.ServiceBean"
activation="eager"
init-method="start"
destroy-method="stop">
<argument>
<ref component-id="register"/>
</argument>
</bean>
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira