aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominik Przybysz (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-1589) Blueprint-maven-plugin does not handle service reference filter correctly
Date Mon, 08 Aug 2016 12:49:20 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411755#comment-15411755
] 

Dominik Przybysz commented on ARIES-1589:
-----------------------------------------

I have checked it on blueprint-maven-plugin in version 1.4.0:

I have field:

[code]
@OsgiService(filter="(component-type=jmsXA)")
    @Inject
    private ConnectionFactory connectionFactory;
[/code]

and in generated blueprint I have

[code]
<property name="connectionFactory" ref="connectionFactory-componenttypejmsXA"/>
[/code]

and 

[code]
<reference id="connectionFactory-componenttypejmsXA" interface="org.osgi.service.io.ConnectionFactory"
filter="(component-type=jmsXA)"/>
[/code]

You have missed @Inject annotation.
Maybe you have defined this service without parentheses in another bean? Then component-name
could be used.

> Blueprint-maven-plugin does not handle service reference filter correctly
> -------------------------------------------------------------------------
>
>                 Key: ARIES-1589
>                 URL: https://issues.apache.org/jira/browse/ARIES-1589
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-maven-plugin-1.4.0
>            Reporter: Charlie Mordant
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When trying to reference a filtered service with pax-cdi-api annotation i.e.:
> [code]
> @OsgiService(filter="(component-type=jmsXA)")
> private ConnectionFactory connectionFactory
> [/code]
> The generated blueprint adds the filter as a 'component-name' attribute instead of filling
the 'filter' attribute.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message