use of com.tvd12.ezyfoxserver.ext.EzyEntryAware in project ezyfox-server by youngmonkeys.
the class EzyAppsStarter method startApp.
protected void startApp(String appName) {
try {
logger.debug("app: {} loading...", appName);
EzyAppContext context = zoneContext.getAppContext(appName);
EzyApplication application = context.getApp();
EzyAppEntry entry = startApp(appName, newAppEntryLoader(appName));
((EzyEntryAware) application).setEntry(entry);
logger.debug("app: {} loaded", appName);
} catch (Exception e) {
logger.error("can not start app: {}", appName, e);
}
}
use of com.tvd12.ezyfoxserver.ext.EzyEntryAware 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