felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3187) scr annotations: scala support
Date Fri, 31 Aug 2012 14:10:08 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler resolved FELIX-3187.
-------------------------------------

    Resolution: Duplicate
    
> scr annotations: scala support
> ------------------------------
>
>                 Key: FELIX-3187
>                 URL: https://issues.apache.org/jira/browse/FELIX-3187
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin
>            Reporter: Andrei Pozolotin
>
> scr annotations: scala support
> this would need to change:
> a) annotaion retention to runtime;
> b) process compiled class files, not java/scala source files - first, in the maven plugin;
> it is also more in line with current osgi scr annotations rfc;
> example:
> 1) scala source:
> import org.apache.felix.scr.annotations.Component
> import org.apache.felix.scr.annotations.Activate
> @Component
> class Hello {
>   @Activate
>   protected def activate {
>     
>   }
> }
> 2) class view via java decompiler:
> import org.apache.felix.scr.annotations.Activate;
> import org.apache.felix.scr.annotations.Component;
> import scala.ScalaObject;
> import scala.reflect.ScalaSignature;
> @Component
> @ScalaSignature(bytes="...")
> public class Hello
>   implements ScalaObject
> {
>   @Activate
>   public void activate()
>   {
>   }
> }
> but scr maven plugin does not see it.

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