[
https://issues.apache.org/jira/browse/FELIX-3636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442502#comment-13442502
]
Konrad Windszus commented on FELIX-3636:
----------------------------------------
I may have found a usecase for using @Service without @Component: Components
inheriting from that service would actually use that annotation. But then you
should rather include @Component(componentAbstract=true) as well to make it
explicit, that you don't want to have a component created from this service.
> 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