org.springmodules.validation.bean.conf.loader
Interface BeanValidationConfigurationLoader

All Known Implementing Classes:
AbstractResourceBasedBeanValidationConfigurationLoader, AbstractXmlBeanValidationConfigurationLoader, DefaultXmlBeanValidationConfigurationLoader, PrioritizedBeanValidationConfigurationLoader, SimpleBeanValidationConfigurationLoader

public interface BeanValidationConfigurationLoader

A strategy to load BeanValidationConfiguration's for bean clases.

Author:
Uri Boness

Method Summary
 BeanValidationConfiguration loadConfiguration(Class clazz)
          Loads the bean validation configuration for the given class.
 boolean supports(Class clazz)
          Indicates whether the given class is supported by this loader.
 

Method Detail

loadConfiguration

BeanValidationConfiguration loadConfiguration(Class clazz)
Loads the bean validation configuration for the given class.

Parameters:
clazz - The class for which the validation configuration will be loaded.
Returns:
The bean validation configuration for the given class or null if no configuration could be found.

supports

boolean supports(Class clazz)
Indicates whether the given class is supported by this loader. The loadConfiguration(Class) will return a validation configuration only for the supported classes. This method should typically be called to determine whether the loadConfiguration(Class) should be called.

Parameters:
clazz - The class to be checked.
Returns:
true if this loader can load a valication configuration for the given class, false otherwise.


Copyright © 2009. All Rights Reserved.