javax.validation.spi

Interface ConfigurationState


  • public interface ConfigurationState
    Contract between a Configuration and a ValidationProvider to create a ValidatorFactory.

    The configuration artifacts defined in the XML configuration and provided to the Configuration are merged and passed along via ConfigurationState.

    Author:
    Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
    • Method Detail

      • 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 that ignoreXmlConfiguration 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
      • 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)

        Streams represented in the XML configuration and opened by the Configuration implementation must be closed by the Configuration implementation after the ValidatorFactory creation (or if an exception occurs). All streams are guaranteed to adhere to the mark/reset contract (see InputStream.markSupported() by the Bean Validation provider.

        Returns:
        set of input stream
      • getConstraintValidatorFactory

        ConstraintValidatorFactory getConstraintValidatorFactory()
        Returns the constraint validator factory of this configuration.

        The ConstraintValidatorFactory implementation is defined in the following decreasing priority:

        • set via the Configuration programmatic API
        • defined in META-INF/validation.xml provided that ignoredXmlConfiguration is false. In this case the instance is created via its no-arg constructor.
        • null if undefined.
        Returns:
        factory instance or null if not defined
      • 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 that ignoredXmlConfiguration is false. In this case the instance is created via its no-arg constructor.
        • null if undefined.
        Returns:
        traversable resolver instance or null if not defined
      • 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 that ignoreXmlConfiguration is false. 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
      • getProperties

        Map<String,String> getProperties()
        Returns a map of non type-safe custom properties.

        Properties defined via:

        If a property is defined both programmatically and in XML, the value defined programmatically has priority.

        Returns:
        Map whose key is the property key and the value the property value

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/08/2025 19:05:40 Cette version de la page est en cache (à la date du 21/08/2025 19:05:40) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/validation/spi/configurationstate.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.