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.