Is it possible to define CDI Stereotypes in Scala?

To define a CDI stereotype, i would need to define a runtime annotation. In scala, i tried this:

//... my stereotype annotations 
class MyStereotype extends ClassfileAnnotation{}

But found this problem:

Implementation restriction: subclassing Classfile does not make your annotation visible at runtime. If that is what you want, you must write the annotation class in Java.

Is it possible, using scala 2.9.1, to define runtime annotations?


This is purely a Scala issue where runtime renentive annotations must be done in Java. So CDI (as well as other stereotypes) should be done in Java.

Need Your Help

jQuery $.post not performing validation properly

javascript php jquery ajax

I am trying to have my form check for a valid birthdate by sending the data to a php file which checks for a valid birthdate, and then it echos the data for $.post to deal with.

How can I open a program always in 600x400?

windows batch-file exe executable resolution

How can I open a program always in 600x400? When I restart the computer I don't wanna configure again, how can I do this?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.