Search in sources :

Example 1 with PluginConfig

use of com.example.simple_chat.plugin.config.PluginConfig in project ezyfox-server-example by tvd12.

the class PluginEntry method setupBeanContext.

@Override
protected void setupBeanContext(EzyPluginContext context, EzyBeanContextBuilder builder) {
    EzyPluginSetting setting = context.getPlugin().getSetting();
    String pluginConfigFile = getConfigFile(setting);
    PluginConfig pluginConfig = readPluginConfig(pluginConfigFile);
    logger.info("simple-chat plugin config: {}", pluginConfig);
}
Also used : PluginConfig(com.example.simple_chat.plugin.config.PluginConfig) EzyPluginSetting(com.tvd12.ezyfoxserver.setting.EzyPluginSetting)

Aggregations

PluginConfig (com.example.simple_chat.plugin.config.PluginConfig)1 EzyPluginSetting (com.tvd12.ezyfoxserver.setting.EzyPluginSetting)1