felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jochen Fliedner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-2892) Get SCR annotations to work with Scala
Date Fri, 07 Sep 2012 11:28:07 GMT

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

Jochen Fliedner commented on FELIX-2892:

As of FELIX-3550 and version "maven-scr-plugin-1.8.0" etc. there is class retention and also
ASM is used to extract the annotations from class files. As a problem for Scala remains that
in a first step the maven plugin identifies the types from the project source folders *.java
files. There is no java source code generated by the Scala compiler, so you won´t see any
Btw some groovy guys seem happy already and switched their servlet from Java code to an annoted
Groovy type: https://github.com/Citytechinc/cq5-groovy-console
I think they let generate Java stubs by the "gmaven-plugin" and those can be used by the scr
Would it be possible to make the class identifiction run on the maven project target folder?

> Get SCR annotations to work with Scala
> --------------------------------------
>                 Key: FELIX-2892
>                 URL: https://issues.apache.org/jira/browse/FELIX-2892
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>            Reporter: Reto Bachmann-Gmür
> Currently the maven scr plugin doesn't work with scala, teh main reason for this is that
the annotation have only source scope and the adding of bind-methods happe on a source rather
than a bytecode level.

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

View raw message