Package org.apache.xbean.finder

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

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.