Package net.datacrow.core.services.plugin

Examples of net.datacrow.core.services.plugin.ServiceClassLoader


     * Starts the search for the servers using the {@link ServiceClassLoader}.
     * The services folder is scanned for both jar and class files. Any class implementing
     * the {@link IServer} class is registered.
     */
    private synchronized void initialize() {
        ServiceClassLoader scl = new ServiceClassLoader(DataCrow.servicesDir);
        registered.clear();
        for (Class<?> clazz : scl.getClasses()) {
           
            IServer server = null;
            try {
                server = (IServer) clazz.newInstance();
            } catch (Exception ignore) {}   
View Full Code Here

TOP

Related Classes of net.datacrow.core.services.plugin.ServiceClassLoader

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.