[
https://issues.apache.org/jira/browse/ARIES-1537?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet reassigned ARIES-1537:
--------------------------------------
Assignee: (was: Guillaume Nodet)
> Support Metatype 1.3 annotations for injecting configurations
> -------------------------------------------------------------
>
> Key: ARIES-1537
> URL: https://issues.apache.org/jira/browse/ARIES-1537
> Project: Aries
> Issue Type: New Feature
> Components: Blueprint
> Reporter: Guillaume Nodet
>
> The CM namespace would have a new element
> {code}
> <bean class="MyBean">
> <cm:config name="config" />
> </bean>
> public class MyBean {
> public void setConfig(MyConfig config) {
> ...
> }
> @ObjectClassDefinition(pid = "my.pid")
> public @interface MyConfig {
> String name() default "foo";
> }
> }
> {code}
> This would also be reused by the maven-blueprint-plugin to support
> configuration injection.
> {code}
> @Singleton
> public class MyBean {
> @Inject
> private MyConfig config;
> @ObjectClassDefinition(pid = "my.pid")
> public @interface MyConfig {
> String name() default "foo";
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)