com.netflix.zuul.FilterFactory Java Examples
The following examples show how to use
com.netflix.zuul.FilterFactory.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ZuulClasspathFiltersModule.java From Sentinel with Apache License 2.0 | 5 votes |
@Override protected void configure() { bind(DynamicCodeCompiler.class).to(GroovyCompiler.class); bind(FilterFactory.class).to(GuiceFilterFactory.class); bind(FilterUsageNotifier.class).to(BasicFilterUsageNotifier.class); Multibinder<ZuulFilter> filterMultibinder = Multibinder.newSetBinder(binder(), ZuulFilter.class); filterMultibinder.addBinding().toInstance(new SentinelZuulInboundFilter(500)); filterMultibinder.addBinding().toInstance(new SentinelZuulOutboundFilter(500)); filterMultibinder.addBinding().toInstance(new SentinelZuulEndpoint()); filterMultibinder.addBinding().toInstance(new Route()); }
Example #2
Source File: ZuulFiltersModule.java From zuul with Apache License 2.0 | 3 votes |
@Override protected void configure() { LOG.info("Starting Groovy Filter file manager"); bind(FilterFactory.class).to(GuiceFilterFactory.class); bind(FilterUsageNotifier.class).to(BasicFilterUsageNotifier.class); LOG.info("Groovy Filter file manager started"); }