Package com.godshawk.lib.interfaces.modularity

Examples of com.godshawk.lib.interfaces.modularity.IPlugin


    }

    public void internalPluginLoad(Class<? extends IPlugin> pluginClass) {
        try {
            PluginMetadata metadata = generateMetadata(pluginClass);
            IPlugin plugin = pluginClass.getDeclaredConstructor(
                    PluginManager.class, File.class, File.class
            ).newInstance(
                    this, pluginDir, new File(
                            String.format("%s%s%s.%s",
                                    pluginDir.getAbsolutePath(),
                                    File.separator,
                                    metadata.getKeyValue(EnumPluginKeys.PLUGIN_ID.getValue()),
                                    configExtension
                            )
                    )
            );
            plugin.setMetadata(metadata);

            addObject(plugin);
        } catch (InstantiationException | IllegalAccessException | NoSuchMethodException
                | InvocationTargetException e) {
            e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.godshawk.lib.interfaces.modularity.IPlugin

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.