net.sf.oval.configuration
Interface Configurer

All Known Implementing Classes:
AnnotationsConfigurer, BeanValidationAnnotationsConfigurer, JPAAnnotationsConfigurer, POJOConfigurer, XMLConfigurer

public interface Configurer

Author:
Sebastian Thomschke

Method Summary
 ClassConfiguration getClassConfiguration(Class<?> clazz)
          Returns the constraint configurations for the given class.
 ConstraintSetConfiguration getConstraintSetConfiguration(String constraintSetId)
          Returns the constraint configuration for the constraint set with the given Id.
 

Method Detail

getClassConfiguration

ClassConfiguration getClassConfiguration(Class<?> clazz)
                                         throws InvalidConfigurationException
Returns the constraint configurations for the given class. This method is invoked only once by the Validator, the very first time an object of the given class needs to be validated. The constraint configuration is then translated into an Validator internal format and cached.

Parameters:
clazz - the class to get the configuration for
Returns:
The constraint configurations for the given class.
Throws:
InvalidConfigurationException - in case of illegal configuration settings

getConstraintSetConfiguration

ConstraintSetConfiguration getConstraintSetConfiguration(String constraintSetId)
                                                         throws InvalidConfigurationException
Returns the constraint configuration for the constraint set with the given Id.

Parameters:
constraintSetId - the ID of the constraint set
Returns:
The constraint configuration for the constraint set with the given Id.
Throws:
InvalidConfigurationException - in case of illegal configuration settings


Copyright © 2005–2015 The OVal Development Team. All rights reserved.