Package org.apache.commons.discovery

Examples of org.apache.commons.discovery.ResourceClassListener


     *         and verify that it implements the SPI.
     *         (this forces the check, no way out..).
     */
    public Class getDefaultClass(SPInterface spi, ClassLoaders loaders) {
        if (defaultClass == null) {
            ResourceClassListener listener =
                new ResourceClassListener() {
                    public boolean found(ResourceClass resource) {
                        defaultClass = resource.loadClass();
                        return false; // only get first.
                    }
                };
View Full Code Here

TOP

Related Classes of org.apache.commons.discovery.ResourceClassListener

Copyright © 2018 www.massapicom. 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.