Search in sources :

Example 1 with EzyAppEntry

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;
}
Also used : EzyAppEntry(com.tvd12.ezyfoxserver.ext.EzyAppEntry)

Example 2 with EzyAppEntry

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);
    }
}
Also used : EzyAppEntry(com.tvd12.ezyfoxserver.ext.EzyAppEntry) EzyAppContext(com.tvd12.ezyfoxserver.context.EzyAppContext) EzyEntryAware(com.tvd12.ezyfoxserver.ext.EzyEntryAware)

Aggregations

EzyAppEntry (com.tvd12.ezyfoxserver.ext.EzyAppEntry)2 EzyAppContext (com.tvd12.ezyfoxserver.context.EzyAppContext)1 EzyEntryAware (com.tvd12.ezyfoxserver.ext.EzyEntryAware)1