Possible bug with classpath scan ignore feature
pith opened this issue · 1 comments
pith commented
Currently all the classes annotated by an annotation ending with Ignore
are ignored by the classpath scan. This might cause bugs hard to find. Because any annotation not necessarily related to Nuun or a framework based on Nuun can exclude a class from the scan. For instance org.junit.Ignore
(It is not a good example but you see my point).
I think that the extensibility should be done by metaannotating an annotation with the Nuun Ignore
annotation.
if (annotation.annotationType().equals(Ignore.class) || annotation.annotationType().getName().endsWith("Ignore"))
{
toKeep = false;
}