use of org.graylog2.plugin.filters.MessageFilter in project graylog2-server by Graylog2.
the class MessageFilterBindings method configure.
@Override
protected void configure() {
Multibinder<MessageFilter> messageFilters = Multibinder.newSetBinder(binder(), MessageFilter.class);
messageFilters.addBinding().to(StaticFieldFilter.class);
messageFilters.addBinding().to(ExtractorFilter.class);
messageFilters.addBinding().to(RulesFilter.class);
messageFilters.addBinding().to(StreamMatcherFilter.class);
// built it drools rules
final Multibinder<URI> rulesUrls = Multibinder.newSetBinder(binder(), URI.class);
try {
final URI blacklistRulesUri = Resources.getResource("blacklist.drl").toURI();
rulesUrls.addBinding().toInstance(blacklistRulesUri);
} catch (URISyntaxException ignored) {
// Ignore
}
}
Aggregations