Top Description Methods
jakarta.validation

public Interface BootstrapConfiguration

Imports
java.util.Map, .Set, jakarta.validation.executable.ExecutableType, .ValidateOnExecution, jakarta.validation.spi.ValidationProvider, jakarta.validation.valueextraction.ValueExtractor

Represents the user specified default configuration in META-INF/validation.xml.

Note that modifications to the returned objects do not have any effect. Instead use the methods provided on Configuration in order to apply modifications to the configuration.

Authors
Emmanuel Bernard, Gunnar Morling, Hardy Ferentschik, Guillaume Smet
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

clock provider class name or null
getClockProviderClassName
()

Class name of the ClockProvider implementation or null if none is specified.

public Set<String>

Returns:

set of constraint mapping resource paths
getConstraintMappingResourcePaths
()

Returns a set of resource paths pointing to XML constraint mapping files.

public String

Returns:

constraint validator factory class name or null
getConstraintValidatorFactoryClassName
()

Class name of the ConstraintValidatorFactory implementation or null if none is specified.

public String

Returns:

validation provider class name or null
getDefaultProviderClassName
()

Class name of the ValidationProvider implementation or null if none is specified.

public Set<ExecutableType>

Returns:

set of validated executable types
getDefaultValidatedExecutableTypes
()

Returns the set of executable types that should be considered unless explicitly overridden via ValidateOnExecution.

public String

Returns:

message interpolator class name or null
getMessageInterpolatorClassName
()

Class name of the MessageInterpolator implementation or null if none is specified.

public String

Returns:

parameter name provider class name or null
getParameterNameProviderClassName
()

Class name of the ParameterNameProvider implementation or null if none is specified.

public Map<String, String>

Returns:

the properties map
getProperties
()

Returns properties as a map of string based key/value pairs.

public String

Returns:

traversable resolver class name or null
getTraversableResolverClassName
()

Class name of the TraversableResolver implementation or null if none is specified.

public Set<String>

Returns:

the value extractor class names or an empty set if none are specified
getValueExtractorClassNames
()

Returns the class names of ValueExtractors.

public boolean

Returns:

whether validation execution is globally enabled
isExecutableValidationEnabled
()

Returns true if the validation execution is explicitly marked as enabled or if it is left undefined.

Method Detail

getClockProviderClassNameback to summary
public String getClockProviderClassName()

Class name of the ClockProvider implementation or null if none is specified.

Returns:String

clock provider class name or null

Since
2.0
getConstraintMappingResourcePathsback to summary
public Set<String> getConstraintMappingResourcePaths()

Returns a set of resource paths pointing to XML constraint mapping files. The set is empty if none are specified.

Returns:Set<String>

set of constraint mapping resource paths

getConstraintValidatorFactoryClassNameback to summary
public String getConstraintValidatorFactoryClassName()

Class name of the ConstraintValidatorFactory implementation or null if none is specified.

Returns:String

constraint validator factory class name or null

getDefaultProviderClassNameback to summary
public String getDefaultProviderClassName()

Class name of the ValidationProvider implementation or null if none is specified.

Returns:String

validation provider class name or null

getDefaultValidatedExecutableTypesback to summary
public Set<ExecutableType> getDefaultValidatedExecutableTypes()

Returns the set of executable types that should be considered unless explicitly overridden via ValidateOnExecution.

Returns a set containing ExecutableType#CONSTRUCTORS and ExecutableType#NON_GETTER_METHODS if unspecified in the configuration.

Returns:Set<ExecutableType>

set of validated executable types

getMessageInterpolatorClassNameback to summary
public String getMessageInterpolatorClassName()

Class name of the MessageInterpolator implementation or null if none is specified.

Returns:String

message interpolator class name or null

getParameterNameProviderClassNameback to summary
public String getParameterNameProviderClassName()

Class name of the ParameterNameProvider implementation or null if none is specified.

Returns:String

parameter name provider class name or null

getPropertiesback to summary
public Map<String, String> getProperties()

Returns properties as a map of string based key/value pairs. The map is empty if no property has been specified.

Returns:Map<String, String>

the properties map

getTraversableResolverClassNameback to summary
public String getTraversableResolverClassName()

Class name of the TraversableResolver implementation or null if none is specified.

Returns:String

traversable resolver class name or null

getValueExtractorClassNamesback to summary
public Set<String> getValueExtractorClassNames()

Returns the class names of ValueExtractors.

Returns:Set<String>

the value extractor class names or an empty set if none are specified

Since
2.0
isExecutableValidationEnabledback to summary
public boolean isExecutableValidationEnabled()

Returns true if the validation execution is explicitly marked as enabled or if it is left undefined.

Returns:boolean

whether validation execution is globally enabled