Examples of CantInstantiatePluginException


Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

        throws CantInstantiatePluginException {
        LOGGER.trace("Get constructor for plug-in {}", plugin.getName());
        try {
            return clazz.getConstructor();
        } catch (final NoSuchMethodException e) {
            throw new CantInstantiatePluginException(addPluginName(
                NEED_DEFAULT_CONSTRUCTOR, plugin), e);
        }
    }
View Full Code Here

Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

        LOGGER.trace("Get plug-in class for plug-in {}", plugin.getName());
        try {
            return Class.forName(plugin.getPluginClassName(), true, Thread
                    .currentThread().getContextClassLoader());
        } catch (final ClassNotFoundException e) {
            throw new CantInstantiatePluginException(addPluginName(
                WRONG_CLASS_GIVEN, plugin), e);
        }
    }
View Full Code Here

Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

        final Plugin plugin) throws CantInstantiatePluginException {
        LOGGER.trace("Instantiate plug-in {}", plugin.getName());
        try {
            return ctor.newInstance();
        } catch (final InstantiationException e) {
            throw new CantInstantiatePluginException(addPluginName(
                CANT_INSTANTIATE, plugin), e);
        } catch (final IllegalAccessException e) {
            throw new CantInstantiatePluginException(addPluginName(
                CANT_INSTANTIATE, plugin), e);
        } catch (final InvocationTargetException e) {
            throw new CantInstantiatePluginException(addPluginName(
                CANT_INSTANTIATE, plugin), e);
        }
    }
View Full Code Here

Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

                LOGGER.warn(
                    "Dependencies for {} can't be resolved (need : {})",
                    plugin.getName(), plugin.getDependencies());
                unresolvedNames.add(plugin.getName());
            }
            throw new CantInstantiatePluginException(
                "These plug-ins can't be instantiate beacause their dependencies aren't solved : "
                    +
                    unresolvedNames);
        }
    }
View Full Code Here

Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

        List<Plugin> plugins;

        try {
            plugins = finder.search(directory);
        } catch (final MalformedManifestJar e) {
            throw new CantInstantiatePluginException(e);
        }

        if (plugins == null) {
            result = new ArrayList<Set<Interface>>();
        } else {
View Full Code Here

Examples of net.sourceforge.justin.core.exceptions.CantInstantiatePluginException

        List<Plugin> plugins;
        try {
            plugins = finder.search(TestConstants.TEST_JAR_PATH);
        } catch (final MalformedManifestJar e) {
            throw new CantInstantiatePluginException(e);
        }

        final List<Set<Plugin>> orderedPlugins = solver.solve(plugins);
        final List<Set<ItfTest>> result = loader.load(orderedPlugins);
        assertEquals("Wrong number of plug-ins", orderedPlugins.size(),
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.