1

In Java i can use org.reflections for scanning packages and searching annotated classes.

Like this:

Reflections ref = new Reflections("my.path");
Set<Class<?>> set = ref.getTypesAnnotatedWith(MyAnnotation.class);

How to get annotated classes in scala? I use scala 2.11 and scala-reflect.

P.S. org.reflections works nice in scala, but i search native instrument.

Dmytro Mitin
  • 48,194
  • 3
  • 28
  • 66
Boris T
  • 11
  • 1

0 Answers0