/** * The link() method must be called to successfully use the findSubclasses and findImplementations methods * * @return * @throws java.io.IOException */ public AnnotationFinder link() { enableFindSubclasses(); enableFindImplementations(); enableMetaAnnotations(); return this; }
/** * The link() method must be called to successfully use the findSubclasses and findImplementations methods * * @return * @throws java.io.IOException */ public AnnotationFinder link() { enableFindSubclasses(); enableFindImplementations(); enableMetaAnnotations(); return this; }
/** * The link() method must be called to successfully use the findSubclasses and findImplementations methods * * @return * @throws java.io.IOException */ public AnnotationFinder link() { enableFindSubclasses(); enableFindImplementations(); enableMetaAnnotations(); return this; }
/** * Creates a list of the specified class and all its parent * classes then creates a AnnotationFinder from that list which * can be used for easy annotation scanning. * * @param classes * @return */ private AnnotationFinder createFinder(final Class<?>... classes) { final Set<Class<?>> parents = new HashSet<Class<?>>(); for (final Class<?> clazz : classes) { parents.addAll(Classes.ancestors(clazz)); } return new AnnotationFinder(new ClassesArchive(parents)).enableMetaAnnotations(); // no need to have subclasses/impl here }
/** * Creates a list of the specified class and all its parent * classes then creates a AnnotationFinder from that list which * can be used for easy annotation scanning. * * @param classes * @return */ private AnnotationFinder createFinder(final Class<?>... classes) { final Set<Class<?>> parents = new HashSet<Class<?>>(); for (final Class<?> clazz : classes) { parents.addAll(Classes.ancestors(clazz)); } return new AnnotationFinder(new ClassesArchive(parents)).enableMetaAnnotations(); // no need to have subclasses/impl here }