[ https://issues.apache.org/jira/browse/ARIES-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15093883#comment-15093883 ]
ASF subversion and git services commented on ARIES-1476: -------------------------------------------------------- Commit 1724231 from [~ch...@die-schneider.net] in branch 'aries/trunk' [ https://svn.apache.org/r1724231 ] [ARIES-1476] Support 0 or multiple OsgiServiceProvider#classes. - 0 classes adds auto-export="interfaces" to the service element - multiple classes adds the interfaces (e.g. A and B) to the interfaces element: <service ref="ref"> <interfaces> <value>A</value> <value>B</value> </interfaces> <service/> > blueprint-maven-plugin: support 0 or multiple OsgiServiceProvider#classes > ------------------------------------------------------------------------- > > Key: ARIES-1476 > URL: https://issues.apache.org/jira/browse/ARIES-1476 > Project: Aries > Issue Type: Improvement > Components: Blueprint > Affects Versions: blueprint-maven-plugin-1.3.0 > Reporter: Sam Wright > Assignee: Christian Schneider > Fix For: blueprint-maven-plugin-1.4.0 > > > Currently blueprint-maven-plugin supports annotating beans with > @OsgiServiceProvider(classes = ...) to expose the bean as an OSGi service, > but only when given exactly 1 interface class to expose it under. > This improvement adds support for passing 0 classes, which creates: > {code} > <service ref="beanRef" auto-export="interfaces"/> > {code} > and also adds support for passing multiple classes, which creates: > {code} > <service ref="beanRef"> > <interfaces> > <value>com.example.ServiceA</value> > <value>com.example.ServiceB</value> > </interfaces> > <service/> > {code} > Patch incoming... -- This message was sent by Atlassian JIRA (v6.3.4#6332)