[
https://issues.apache.org/jira/browse/FELIX-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562807#comment-13562807
]
Felix Meschberger commented on FELIX-2928:
------------------------------------------
What we need for the these annotations is a "reference" to the @Reference. This
could be derived from the argument type or from the type attribute:
@Bind(referenceInterface=xyz.class)
Checks to be done:
- If no referenceInterface is given the type is taken from the method
- If in this case the method's type is ServiceReference or Map, an error is
raised
- If the referenceInterface is given, the method's argument(s) are ignored
- The referenceInterface (defined or derived) is matched with the
referenceInterface of a @Reference
- If no matching @Reference is found an error is raised
- If more than one matching @Reference is found an error is raised
In the last case, we might want to add support for a "name" attribute, which
must match the @Reference.name.
> annotations for @Bind @Unbind @Updated
> --------------------------------------
>
> Key: FELIX-2928
> URL: https://issues.apache.org/jira/browse/FELIX-2928
> Project: Felix
> Issue Type: Improvement
> Components: Maven SCR Plugin, SCR Annotations
> Reporter: Andrei Pozolotin
>
> I suggest to add annotations for @Bind @Unbind @Updated
> the same way you have it for @Activate, @Deactivate, @Modified
> http://felix.apache.org/site/scr-annotations.html
--
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