I am using the Reflections API to scan my java project and fetch all classes/interfaces having a particular annotation. However it is just returning classes but not interfaces.
I am using the following:
Set<Class<?>> annotated =
reflections.getTypesAnnotatedWith(Path.class);
Note : it is working for classes having Path annotation.
So is it that Reflections does not support scanning interfaces ? Or I have to code something else?
This should work, as can be seen here
Maybe you're not scanning all the relevant urls? In that case, try building the Reflections object properly (using ClasspathHelper.forClasspath() would scan everything, though it is too broad probably...)