Sam Wright created ARIES-1476:
---------------------------------

             Summary: 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
            Reporter: Sam Wright


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)

Reply via email to