use of com.tvd12.ezyfoxserver.ext.EzyAppEntry in project ezyfox-server by youngmonkeys.
the class EzyAppsStarter method startApp.
protected EzyAppEntry startApp(String appName, EzyAppEntryLoader loader) throws Exception {
EzyAppEntry entry = loader.load();
entry.config(getAppContext(appName));
entry.start();
return entry;
}
use of com.tvd12.ezyfoxserver.ext.EzyAppEntry 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);
}
}
Aggregations