Search in sources :

Example 1 with EzyEntryAware

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

Example 2 with EzyEntryAware

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

Aggregations

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