-
public interface ConfigurationState
Contract between aConfiguration
and aValidationProvider
to create aValidatorFactory
. The configuration artifacts defined in the XML configuration and provided to theConfiguration
are merged and passed along viaConfigurationState
.- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description ConstraintValidatorFactory
getConstraintValidatorFactory()
Returns the constraint validator factory of this configuration.Set<InputStream>
getMappingStreams()
Returns a set of configuration streams.MessageInterpolator
getMessageInterpolator()
Returns the message interpolator of this configuration.ParameterNameProvider
getParameterNameProvider()
Returns the parameter name provider for this configuration.Map<String,String>
getProperties()
Returns a map of non type-safe custom properties.TraversableResolver
getTraversableResolver()
Returns the traversable resolver for this configuration.boolean
isIgnoreXmlConfiguration()
Returnstrue
ifConfiguration.ignoreXmlConfiguration()
has been called.
-
-
-
Method Detail
-
isIgnoreXmlConfiguration
boolean isIgnoreXmlConfiguration()
Returnstrue
ifConfiguration.ignoreXmlConfiguration()
has been called. In this case, theValidatorFactory
must ignoreMETA-INF/validation.xml
.- Returns:
true
ifMETA-INF/validation.xml
should be ignored
-
getMessageInterpolator
MessageInterpolator getMessageInterpolator()
Returns the message interpolator of this configuration. Message interpolator is defined in the following decreasing priority:- set via the
Configuration
programmatic API - defined in
META-INF/validation.xml
provided thatignoreXmlConfiguration
is false. In this case the instance is created via its no-arg constructor. null
if undefined.
- Returns:
- message interpolator instance or
null
if not defined
- set via the
-
getMappingStreams
Set<InputStream> getMappingStreams()
Returns a set of configuration streams. The streams are defined by:- mapping XML streams passed programmatically in
Configuration
- mapping XML streams located in the resources defined in
META-INF/validation.xml
(constraint-mapping element)
Configuration
implementation must be closed by theConfiguration
implementation after theValidatorFactory
creation (or if an exception occurs). All streams are guaranteed to adhere to the mark/reset contract (seeInputStream.markSupported()
by the Bean Validation provider.- Returns:
- set of input stream
- mapping XML streams passed programmatically in
-
getConstraintValidatorFactory
ConstraintValidatorFactory getConstraintValidatorFactory()
Returns the constraint validator factory of this configuration. TheConstraintValidatorFactory
implementation is defined in the following decreasing priority:- set via the
Configuration
programmatic API - defined in
META-INF/validation.xml
provided thatignoredXmlConfiguration
isfalse
. In this case the instance is created via its no-arg constructor. null
if undefined.
- Returns:
- factory instance or
null
if not defined
- set via the
-
getTraversableResolver
TraversableResolver getTraversableResolver()
Returns the traversable resolver for this configuration.TraversableResolver
is defined in the following decreasing priority:- set via the
Configuration
programmatic API - defined in
META-INF/validation.xml
provided thatignoredXmlConfiguration
isfalse
. In this case the instance is created via its no-arg constructor. null
if undefined.
- Returns:
- traversable resolver instance or
null
if not defined
- set via the
-
getParameterNameProvider
ParameterNameProvider getParameterNameProvider()
Returns the parameter name provider for this configuration.ParameterNameProvider
is defined in the following decreasing priority:- set via the
Configuration
programmatic API - defined in
META-INF/validation.xml
provided thatignoreXmlConfiguration
isfalse
. In this case the instance is created via its no-arg constructor. null
if undefined.
- Returns:
- parameter name provider instance or
null
if not defined - Since:
- 1.1
- set via the
-
getProperties
Map<String,String> getProperties()
Returns a map of non type-safe custom properties. Properties defined via:Configuration.addProperty(String, String)
META-INF/validation.xml
provided thatignoreXmlConfiguration
is
false
.- Returns:
Map
whose key is the property key and the value the property value
-
-
Nederlandse vertaling
U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.
Bij voorbaat dank.
Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/validation/spi/ConfigurationState.html
De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.
Referenties
Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.