felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-3636) Using @Service without @Component should nevertheless create a component
Date Tue, 28 Aug 2012 19:51:07 GMT

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

Felix Meschberger commented on FELIX-3636:
------------------------------------------

The @Component annotation not only provides information about the component but is also used
as a marker annotation: Only if @Component is provided will the SCR plugin pick up the class
(at least, this is how was done initially)
                
> Using @Service without @Component should nevertheless create a component
> ------------------------------------------------------------------------
>
>                 Key: FELIX-3636
>                 URL: https://issues.apache.org/jira/browse/FELIX-3636
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin, SCR Annotations
>    Affects Versions: maven-scr-plugin-1.8.0, scr annotations 1.7.0
>            Reporter: Konrad Windszus
>
> If I use the annotation @Service without @Component no entry in the serviceComponents.xml
will be generated and no warning is given out during build from the maven-scr-plugin.
> You should either implicitly generate a component if @Service is given without @Component
or an error should be logged during build, since using @Service without @Component right now
has no effect at all and this is never intended by someone using @Service.

--
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

Mime
View raw message