Examples of findSubclasses()


Examples of com.metapossum.utils.scanner.reflect.ClassesInPackageScanner.findSubclasses()

                    return false;
                }
            });

            try {
                Set classSet = classScanner.findSubclasses(applicationPackageBase, Object.class);
                Class[] webHandlerClasses = new Class[classSet.size()];
                classSet.toArray(webHandlerClasses);
                return webHandlerClasses;
            } catch (IOException e) {
                // TODO Auto-generated catch block
View Full Code Here

Examples of com.metapossum.utils.scanner.reflect.ClassesInPackageScanner.findSubclasses()

                    return false;
                }
            });

            try {
                Set classSet = classScanner.findSubclasses(applicationPackageBase, Object.class);
                Class[] webHandlerClasses = new Class[classSet.size()];
                classSet.toArray(webHandlerClasses);
                return webHandlerClasses;
            } catch (IOException e) {
                // TODO Auto-generated catch block
View Full Code Here

Examples of com.metapossum.utils.scanner.reflect.ClassesInPackageScanner.findSubclasses()

                    return false;
                }
            });

            try {
                Set classSet = classScanner.findSubclasses(applicationPackageBase, Object.class);
                Class[] webHandlerClasses = new Class[classSet.size()];
                classSet.toArray(webHandlerClasses);
                return webHandlerClasses;
            } catch (IOException e) {
                // TODO Auto-generated catch block
View Full Code Here

Examples of jade.util.ClassFinder.findSubclasses()

    public void run() {
      classNamesCache = new ArrayList(UPDATE_EVERY);
      numberOfClasses = 0;
      ClassFinder cf = new ClassFinder();
      cf.findSubclasses(classname, this, classfilter);
      if (classNamesCache.size() > 0) {
        appendToList(classNamesCache);
        classNamesCache.clear();
      }
      // last call, with empty list, to update status message
View Full Code Here

Examples of org.apache.xbean.finder.AbstractFinder.findSubclasses()

    private Map<String, Merger<?>> initMerger() throws Exception {
        final Map<String, Merger<?>> mergers = new HashMap<String, Merger<?>>();
        final ClassLoader cl = new URLClassLoader(new URL[] { getClass().getProtectionDomain().getCodeSource().getLocation() }, ClassLoader.getSystemClassLoader());
        final AbstractFinder finder = new ClassFinder(cl, true).link();
        final List<Class> foundMergers = finder.findSubclasses((Class) cl.loadClass(Merger.class.getName()));
       
        for (Class<? extends Merger> m : foundMergers) {
            try {
                // reload the class with the current classloader to avoid to miss some dependencies
                // excluded to scan faster
View Full Code Here

Examples of org.apache.xbean.finder.AnnotationFinder.findSubclasses()

                }

                if (profile.getSubclasses() != null) {
                    for (String subclass : profile.getSubclasses()) {
                        try {
                            for (Class<?> clazz : finder.findSubclasses(load(loader, subclass))) {
                                classes.add(clazz.getName());
                            }
                        } catch (MojoFailureException mfe) {
                            getLog().warn("can't find " + subclass);
                        }
View Full Code Here

Examples of org.apache.xbean.finder.AnnotationFinder.findSubclasses()

                }

                if (profile.getSubclasses() != null) {
                    for (String subclass : profile.getSubclasses()) {
                        try {
                            for (Class<?> clazz : finder.findSubclasses(load(loader, subclass))) {
                                classes.add(clazz.getName());
                            }
                        } catch (MojoFailureException mfe) {
                            getLog().warn("can't find " + subclass);
                        }
View Full Code Here

Examples of org.apache.xbean.finder.IAnnotationFinder.findSubclasses()

            // Applications with a default constructor
            // findSubclasses will not work by default to gain a lot of time
            // look FinderFactory for the flag to activate it or
            // use @ApplicationPath("/")
            List<Class<? extends Application>> applications = finder.findSubclasses(Application.class);
            for (Class<? extends Application> app : applications) {
                addRestApplicationIfPossible(webModule, app);
            }

            // look for ApplicationPath, it will often return the same than the previous one
View Full Code Here

Examples of org.apache.xbean.finder.IAnnotationFinder.findSubclasses()

                        continue;
                    }
                    if (clazz.isAnnotation()) {
                        classes.addAll(metaToClass(finder.findMetaAnnotatedClasses(clazz)));
                    } else if (Modifier.isAbstract(clazz.getModifiers())) {
                        classes.addAll(finder.findSubclasses(clazz));
                    } else {
                        classes.addAll(finder.findImplementations(clazz));
                    }
                }
            }
View Full Code Here

Examples of org.apache.xbean.finder.IAnnotationFinder.findSubclasses()

             * REST
             */
            // get by annotations
            webModule.getRestClasses().addAll(findRestClasses(webModule, finder));
            // Applications
            List<Class<? extends Application>> applications = finder.findSubclasses(Application.class);
            for (Class<? extends Application> app : applications) {
                webModule.getRestApplications().add(app.getName());
            }

            return webModule;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.