/* * Copyright (C) 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.jboss.errai.reflections; import org.jboss.errai.reflections.adapters.MetadataAdapter; import org.jboss.errai.reflections.scanners.Scanner; import org.jboss.errai.reflections.serializers.Serializer; import java.net.URL; import java.util.Set; import java.util.concurrent.ExecutorService; /** * Configuration is used to create a configured instance of {@link Reflections} * <p>it is preferred to use {@link org.jboss.errai.reflections.util.ConfigurationBuilder} */ public interface Configuration { /** the scanner instances used for scanning different metadata */ Set<Scanner> getScanners(); /** the urls to be scanned */ Set<URL> getUrls(); /** the metadata adapter used to fetch metadata from classes */ @SuppressWarnings({"RawUseOfParameterizedType"}) MetadataAdapter getMetadataAdapter(); /** the fully qualified name filter used to filter types to be scanned */ boolean acceptsInput(String inputFqn); /** 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(); }