felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-2461) Allow specifying the targeted service interface in the @ServiceController
Date Sat, 03 Jul 2010 15:08:49 GMT
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.


Mime
View raw message