jakarta.validation.ValidationProviderResolver Maven / Gradle / Ivy
/*
* Jakarta Bean Validation API
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package jakarta.validation;
import java.util.List;
import jakarta.validation.spi.ValidationProvider;
/**
* Determines the list of Jakarta Bean Validation providers available in the runtime environment
*
* Jakarta Bean Validation providers are identified by the presence of
* {@code META-INF/services/jakarta.validation.spi.ValidationProvider}
* files following the Service Provider pattern described
* here.
*
* Each {@code META-INF/services/jakarta.validation.spi.ValidationProvider} file contains the
* list of {@link ValidationProvider} implementations each of them representing a provider.
*
* Implementations must be thread-safe.
*
* @author Emmanuel Bernard
*/
public interface ValidationProviderResolver {
/**
* Returns a list of {@link ValidationProvider} available in the runtime environment.
*
* @return list of validation providers
*/
List> getValidationProviders();
}