}
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();