public void registerAnnotatedClasses ( Class < ? > ... classesToInspect ) { for ( Class < ? > nextClass : classesToInspect ) { Class < ? > loopClass = nextClass ; while ( ( loopClass != Object . class ) && ( ! inspectedClasses . contains ( loopClass ) ) ) { attachForAnnotations ( loopClass ) ; loopClass = loopClass . getSuperclass ( ) ; } } }
Inspect each of the supplied classes processing any of the annotated methods found