src/main/java/com/cloudbees/sdk/extensibility/ExtensionFinder.java
private Set<Class> listExtensionPoint(Class e, Set<Class> result) {
        if (e.isAnnotationPresent(ExtensionPoint.class))
            result.add(e);
        Class s = e.getSuperclass();
        if (s!=null)
            listExtensionPoint(s,result);
        for (Class c : e.getInterfaces()) {
            listExtensionPoint(c,result);
        }
        return result;
    }
private Set<Class> listExtensionPoint(Class e, Set<Class> result) {
        if (e.isAnnotationPresent(ExtensionPoint.class))
            result.add(e);
        Class s = e.getSuperclass();
        if (s!=null)
            listExtensionPoint(s,result);
        for (Class c : e.getInterfaces()) {
            listExtensionPoint(c,result);
        }
        return result;
    }
private Set < Class > listExtensionPoint ( Class e , Set < Class > result ) { if ( e . isAnnotationPresent ( ExtensionPoint . class ) ) result . add ( e ) ; Class s = e . getSuperclass ( ) ; if ( s != null ) listExtensionPoint ( s , result ) ; for ( Class c : e . getInterfaces ( ) ) { listExtensionPoint ( c , result ) ; } return result ; }
Finds all the supertypes that are annotated with {@link ExtensionPoint}.
Finds all the supertypes that are annotated with {