/
Configuration.java
33 lines (25 loc) · 1.11 KB
/
Configuration.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package org.reflections;
import org.reflections.scanners.Scanner;
import java.net.URL;
import java.util.Map;
import java.util.Set;
import java.util.function.Predicate;
/**
* Configuration is used to create a configured instance of {@link Reflections}
* <p>it is preferred to use {@link org.reflections.util.ConfigurationBuilder}
*/
public interface Configuration {
/** the scanner instances used for indexing metadata. defaults to {@code SubTypes} and {@code TypesAnnotated}. */
Set<Scanner> getScanners();
/** the urls to be scanned. required. */
Set<URL> getUrls();
/** the fully qualified name filter used to filter types to be scanned. defaults to accept all inputs (if null). */
Predicate<String> getInputsFilter();
/** scan urls in parallel. defaults to true. */
boolean isParallel();
/** optional class loaders used for resolving types. */
ClassLoader[] getClassLoaders();
/** if true (default), expand super types after scanning, for super types that were not scanned.
* <p>see {@link Reflections#expandSuperTypes(Map, Map)}*/
boolean shouldExpandSuperTypes();
}