Package org.apache.commons.discovery

Examples of org.apache.commons.discovery.ServiceInfo


       
        ServiceInfo[] infoArray = discovery.findServices(name);
       
        if ( infoArray != null && infoArray.length > 0 ) {
            for (int i = 0; i < infoArray.length; i++ ) {
                ServiceInfo info = infoArray[i];
                try {               
                    Class typeClass = info.getLoader().loadClass( info.getImplName() );
                    if ( typeClass != null ) {
                        return newInstance(uri, typeClass);
                    }
                }
                catch (Exception e) {
                    log.error( "Could not load service: " + info.getImplName()
                       + " with loader: " + info.getLoader()
                   );
                }
            }
        }
        else {
View Full Code Here

TOP

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

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.