Search in sources :

Example 1 with FilterFileManagerConfig

use of com.netflix.zuul.FilterFileManager.FilterFileManagerConfig in project zuul by Netflix.

the class ZuulFiltersModule method provideFilterFileManagerConfig.

@Provides
FilterFileManagerConfig provideFilterFileManagerConfig(AbstractConfiguration config, FilenameFilter filenameFilter) {
    // Get filter directories.
    String[] filterLocations = findFilterLocations(config);
    String[] filterClassNames = findClassNames(config);
    // Init the FilterStore.
    FilterFileManagerConfig filterConfig = new FilterFileManagerConfig(filterLocations, filterClassNames, 5, filenameFilter);
    return filterConfig;
}
Also used : FilterFileManagerConfig(com.netflix.zuul.FilterFileManager.FilterFileManagerConfig) Provides(com.google.inject.Provides)

Aggregations

Provides (com.google.inject.Provides)1 FilterFileManagerConfig (com.netflix.zuul.FilterFileManager.FilterFileManagerConfig)1