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

Felix Meschberger commented on FELIX-3187:
------------------------------------------

Does scala have something like Java's "private" modifier ? If so, I suggest you 
use "private".

In fact, as a side note, I think using protected is almost as wrong as public 
and has only limited use. For general use, nowadays, private is preferred 
because the DS lifecycle and bind methods should not be part of any conceived 
API.
                
> 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

Reply via email to