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

Eric Charles commented on ONAMI-51:
-----------------------------------

Hi Simo,

Ok, got it. Definition via system properties is really cool!

To make the test work via "Run as test" from the IDE (and not only from the 
Maven CLI), we could add in the setUp method
System.setProperty("org.apache.onami.spi.FooService", 
"org.apache.onami.spi.FooServiceImpl1,org.apache.onami.spi.FooServiceImpl2");
and get rid of the surefire-plugin configuration.

For Jenkins, yes, it seems to give false negatives (intermittent failures).

Thx, Eric

                
> Services discovered via ServiceLoader must be qualified in the binder in 
> order to address injections
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ONAMI-51
>                 URL: https://issues.apache.org/jira/browse/ONAMI-51
>             Project: Apache Onami
>          Issue Type: Improvement
>          Components: spi
>    Affects Versions: spi-1.0.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: spi-1.0.0
>
>         Attachments: ONAMI-51.patch, org.apache.onami.spi.FooService
>
>
> As we discussed in [dev@ ML|http://markmail.org/message/6q3vbdwbg3uq4xp7], 
> there is the need of qualify bindings of discovered services

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to