use of com.tvd12.ezyfoxserver.ext.EzyPluginEntry in project ezyfox-server by youngmonkeys.
the class EzyPluginsStarter method startPlugin.
protected EzyPluginEntry startPlugin(String pluginName, EzyPluginEntryLoader loader) throws Exception {
EzyPluginEntry entry = loader.load();
entry.config(getPluginContext(pluginName));
entry.start();
return entry;
}
use of com.tvd12.ezyfoxserver.ext.EzyPluginEntry in project ezyfox-server by youngmonkeys.
the class EzyPluginsStarter method startPlugin.
protected void startPlugin(String pluginName) {
try {
logger.debug("plugin: {} loading...", pluginName);
EzyPluginContext context = zoneContext.getPluginContext(pluginName);
EzyPlugin plugin = context.getPlugin();
EzyPluginEntry entry = startPlugin(pluginName, newPluginEntryLoader(pluginName));
((EzyEntryAware) plugin).setEntry(entry);
logger.debug("plugin: {} loaded", pluginName);
} catch (Exception e) {
logger.error("can not start plugin: {}", pluginName, e);
}
}
Aggregations