@Override public AssetAggregator set(final Config options) { super.set(options); return this; }
@SuppressWarnings("unchecked") public boolean excludes(final String path) { Object value = get("excludes"); if (value == null) { return false; } List<String> excludes; if (value instanceof List) { excludes = (List<String>) value; } else { excludes = ImmutableList.of(value.toString()); } String spath = Route.normalize(path); return excludes.stream() .map(it -> new RoutePattern("GET", it)) .anyMatch(pattern -> pattern.matcher("GET" + spath).matches()); }
@SuppressWarnings("unchecked") public boolean excludes(final String path) { Object value = get("excludes"); if (value == null) { return false; } List<String> excludes; if (value instanceof List) { excludes = (List<String>) value; } else { excludes = ImmutableList.of(value.toString()); } String spath = Route.normalize(path); return excludes.stream() .map(it -> new RoutePattern("GET", it)) .anyMatch(pattern -> pattern.matcher("GET" + spath).matches()); }
@Override public AssetProcessor set(final String name, final Object value) { super.set(name, value); return this; }
@Override public AssetAggregator set(final String name, final Object value) { super.set(name, value); return this; }
@Override public AssetProcessor set(final Config options) { super.set(options); return this; }
processor.set(without.apply(options)); processors.add((T) processor); if (processor instanceof AssetProcessor) {
@Override public AssetAggregator set(final String name, final Object value) { super.set(name, value); return this; }
@Override public AssetProcessor set(final Config options) { super.set(options); return this; }
@Override public AssetAggregator set(final Config options) { super.set(options); return this; }
@Override public AssetProcessor set(final String name, final Object value) { super.set(name, value); return this; }
processor.set(without.apply(options)); processors.add((T) processor); if (processor instanceof AssetProcessor) {