javax.validation.spi
Interface ConfigurationState


public interface ConfigurationState

Contract between a Configuration and a ValidatorProvider 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

Method Summary
 ConstraintValidatorFactory getConstraintValidatorFactory()
          Returns the constraint validator factory of this configuration.
 java.util.Set<java.io.InputStream> getMappingStreams()
          Returns a set of configuration streams.
 MessageInterpolator getMessageInterpolator()
          Returns the message interpolator of this configuration.
 java.util.Map<java.lang.String,java.lang.String> getProperties()
          Returns a map of non type-safe custom properties.
 TraversableResolver getTraversableResolver()
          Returns the traversable resolver for this configuration.
 boolean isIgnoreXmlConfiguration()
          Returns true if Configuration.ignoreXMLConfiguration() has been called In this case, the ValidatorFactory must ignore META-INF/validation.xml
 

Method Detail

isIgnoreXmlConfiguration

boolean isIgnoreXmlConfiguration()
Returns true if Configuration.ignoreXMLConfiguration() has been called In this case, the ValidatorFactory must ignore META-INF/validation.xml

Returns:
true if META-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:

Returns:
message provider instance or null if not defined

getMappingStreams

java.util.Set<java.io.InputStream> getMappingStreams()
Returns a set of configuration streams. The streams are defined by: 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).

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:

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:

Returns:
traversable provider instance or null if not defined

getProperties

java.util.Map<java.lang.String,java.lang.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


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41