[ https://issues.apache.org/jira/browse/FELIX-2461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905860#action_12905860 ]
Clement Escoffier commented on FELIX-2461: ------------------------------------------ Included in the 1.6.4 releases > Allow specifying the targeted service interface in the @ServiceController > ------------------------------------------------------------------------- > > Key: FELIX-2461 > URL: https://issues.apache.org/jira/browse/FELIX-2461 > Project: Felix > Issue Type: New Feature > Components: iPOJO > Reporter: Clement Escoffier > Assignee: Clement Escoffier > Fix For: iPOJO-1.8.0 > > > The @serviceController annotation does not allow to set the targeted > specification. By adding a 'specification' attribute, the controller can be > assigned to control one interface only and then allowing fine tuning like: > @Component > @Provides > public class MyClass implements Service1, Service2 { > @ServiceController(specification=Service1.class) > boolean m_controller1; > @ServiceController(specification=Service2.class) > boolean m_controller2; > } > If no 'specification' set, all not-already-targeted interfaces are targeted. > @Component > @Provides > public class MyClass implements Service1, Service2, Service3 { > @ServiceController(specification=Service1.class) > boolean m_controller1; > @ServiceController // Control Service2 and Service 3 > boolean m_controller2; > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.