private FilterDefinition[] collectFilterDefinitions(Injector injector) {
    List<FilterDefinition> filterDefinitions = Lists.newArrayList();
    for (Binding<FilterDefinition> entry : injector.findBindingsByType(FILTER_DEFS)) {
      filterDefinitions.add(entry.getProvider().get());
    }

    // Copy to a fixed-size array for speed of iteration.
    return filterDefinitions.toArray(new FilterDefinition[filterDefinitions.size()]);
  }
private FilterDefinition[] collectFilterDefinitions(Injector injector) {
    List<FilterDefinition> filterDefinitions = Lists.newArrayList();
    for (Binding<FilterDefinition> entry : injector.findBindingsByType(FILTER_DEFS)) {
      filterDefinitions.add(entry.getProvider().get());
    }

    
    return filterDefinitions.toArray(new FilterDefinition[filterDefinitions.size()]);
  }
private FilterDefinition [ ] collectFilterDefinitions ( Injector injector ) { List < FilterDefinition > filterDefinitions = Lists . newArrayList ( ) ; for ( Binding < FilterDefinition > entry : injector . findBindingsByType ( FILTER_DEFS ) ) { filterDefinitions . add ( entry . getProvider ( ) . get ( ) ) ; } // Copy to a fixed-size array for speed of iteration. return filterDefinitions . toArray ( new FilterDefinition [ filterDefinitions . size ( ) ] ) ; }
Introspects the injector and collects all instances of bound {@code List<FilterDefinition>}
into a master list.

<p>We have a guarantee that {@link com.google.inject.Injector#getBindings()} returns a map that
preserves insertion order in entry-set iterators.
Introspects the injector and collects all instances of bound { @code List<FilterDefinition > } into a master list .