jakarta.validation.spi.BootstrapState Maven / Gradle / Ivy
The newest version!
/*
* Jakarta Validation API
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or .
*/
package jakarta.validation.spi;
import jakarta.validation.Configuration;
import jakarta.validation.ValidationProviderResolver;
/**
* Defines the state used to bootstrap the {@link Configuration}.
*
* @author Emmanuel Bernard
* @author Sebastian Thomschke
*/
public interface BootstrapState {
/**
* User defined {@code ValidationProviderResolver} strategy
* instance or {@code null} if undefined.
*
* @return ValidationProviderResolver instance or null
*/
ValidationProviderResolver getValidationProviderResolver();
/**
* Specification default {@code ValidationProviderResolver}
* strategy instance.
*
* @return default implementation of ValidationProviderResolver
*/
ValidationProviderResolver getDefaultValidationProviderResolver();
}