Package com.godshawk.lib.exception

Examples of com.godshawk.lib.exception.TooManyPluginsException


        List<Class<? extends IPlugin>> pluginClasses = new ArrayList<>();
        classesInDir.stream().filter(IPlugin.class::isAssignableFrom).sequential()
                .forEach(c -> pluginClasses.add((Class<? extends IPlugin>) c));

        if (pluginClasses.size() + getObjects().size() > HARD_LIMIT) {
            throw new TooManyPluginsException(pluginClasses.size(), HARD_LIMIT);
        }

        pluginClasses.forEach(this::internalPluginLoad);
    }
View Full Code Here

TOP

Related Classes of com.godshawk.lib.exception.TooManyPluginsException

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.