Reto Bachmann-Gmür wrote:
> Hello
> 
> I was hoping that with support for annotations the scr plugin would work
> with scala code as well. But in my mixed java/scala project it seems to
> only look at the annotations in the java sources.
> 
> @Component
> public class Service {
> 
>     @Property(value = "default value")
>     static final String CONSTANT_NAME = "property.name";
> }
> 
> ---> results in an entry in OSGI-INF/serviceComponents.xml
> 
> package org.trialox.sandbox.scr {
>     @Component class ScalaService {
> 
>         @Property{ val value = Array("default value")}
>         val CONSTANT_NAME = "property.name";
>     }
> }
> 
> --> no mention in OSGI-INF/serviceComponents.xml
> 
> do I need particular settings for the scr plugin to have it look at the
> scala file as well?
> 
Interesting use case :)

Now, the scr plugin scans java source files - even with the annotations.
I've no idea how the maven scala integration works, so what is
generated? Is this a java source file or a compiled class?

Carsten

> Cheers,
> reto
> 


-- 
Carsten Ziegeler
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to