Search in sources :

Example 1 with PluginConfigBean

use of org.graylog2.plugin.PluginConfigBean in project graylog2-server by Graylog2.

the class CmdLineTool method installPluginConfigAndBindings.

private PluginBindings installPluginConfigAndBindings(String pluginPath, ChainingClassLoader classLoader) {
    final Set<Plugin> plugins = loadPlugins(pluginPath, classLoader);
    final PluginBindings pluginBindings = new PluginBindings(plugins);
    for (final Plugin plugin : plugins) {
        for (final PluginModule pluginModule : plugin.modules()) {
            for (final PluginConfigBean configBean : pluginModule.getConfigBeans()) {
                jadConfig.addConfigurationBean(configBean);
            }
        }
    }
    return pluginBindings;
}
Also used : PluginConfigBean(org.graylog2.plugin.PluginConfigBean) PluginBindings(org.graylog2.shared.bindings.PluginBindings) PluginModule(org.graylog2.plugin.PluginModule) Plugin(org.graylog2.plugin.Plugin)

Aggregations

Plugin (org.graylog2.plugin.Plugin)1 PluginConfigBean (org.graylog2.plugin.PluginConfigBean)1 PluginModule (org.graylog2.plugin.PluginModule)1 PluginBindings (org.graylog2.shared.bindings.PluginBindings)1