org.reflections.Configuration Maven / Gradle / Ivy
Show all versions of swagger-all Show documentation
package org.reflections;
import com.google.common.base.Predicate;
import org.reflections.adapters.MetadataAdapter;
import org.reflections.scanners.Scanner;
import org.reflections.serializers.Serializer;
import javax.annotation.Nullable;
import java.net.URL;
import java.util.Set;
import java.util.concurrent.ExecutorService;
/**
* Configuration is used to create a configured instance of {@link Reflections}
* it is preferred to use {@link org.reflections.util.ConfigurationBuilder}
*/
public interface Configuration {
/** the scanner instances used for scanning different metadata */
Set getScanners();
/** the urls to be scanned */
Set getUrls();
/** the metadata adapter used to fetch metadata from classes */
@SuppressWarnings({"RawUseOfParameterizedType"})
MetadataAdapter getMetadataAdapter();
/** get the fully qualified name filter used to filter types to be scanned */
@Nullable
Predicate getInputsFilter();
/** executor service used to scan files. if null, scanning is done in a simple for loop */
ExecutorService getExecutorService();
/** the default serializer to use when saving Reflection */
Serializer getSerializer();
/** get class loaders, might be used for resolving methods/fields */
@Nullable
ClassLoader[] getClassLoaders();
}