/*
 * Bean Validation API
 *
 * License: Apache License, Version 2.0
 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
 */
package javax.validation;

import java.util.List;

import javax.validation.spi.ValidationProvider;

Determines the list of Bean Validation providers available in the runtime environment

Bean Validation providers are identified by the presence of META-INF/services/javax.validation.spi.ValidationProvider files following the Service Provider pattern described here.

Each META-INF/services/javax.validation.spi.ValidationProvider file contains the list of ValidationProvider implementations each of them representing a provider.

Implementations must be thread-safe.

Author:Emmanuel Bernard
/** * Determines the list of Bean Validation providers available in the runtime environment * <p> * Bean Validation providers are identified by the presence of * {@code META-INF/services/javax.validation.spi.ValidationProvider} * files following the Service Provider pattern described * <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#Service_Provider">here</a>. * <p> * Each {@code META-INF/services/javax.validation.spi.ValidationProvider} file contains the * list of {@link ValidationProvider} implementations each of them representing a provider. * <p> * Implementations must be thread-safe. * * @author Emmanuel Bernard */
public interface ValidationProviderResolver {
Returns a list of ValidationProvider available in the runtime environment.
Returns:list of validation providers
/** * Returns a list of {@link ValidationProvider} available in the runtime environment. * * @return list of validation providers */
List<ValidationProvider<?>> getValidationProviders(); }