org.springmodules.validation.bean.conf.loader
Class PrioritizedBeanValidationConfigurationLoader
java.lang.Object
  
org.springmodules.validation.bean.conf.loader.PrioritizedBeanValidationConfigurationLoader
- All Implemented Interfaces: 
 - BeanValidationConfigurationLoader
 
public class PrioritizedBeanValidationConfigurationLoader
- extends Object
- implements BeanValidationConfigurationLoader
  
A composite BeanValidationConfigurationLoader implementation that
 loads bean validation configuration using multiple sub-loaders.
- Author:
 
  - Uri Boness
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PrioritizedBeanValidationConfigurationLoader
public PrioritizedBeanValidationConfigurationLoader()
PrioritizedBeanValidationConfigurationLoader
public PrioritizedBeanValidationConfigurationLoader(BeanValidationConfigurationLoader[] loaders)
loadConfiguration
public BeanValidationConfiguration loadConfiguration(Class clazz)
- Description copied from interface: 
BeanValidationConfigurationLoader 
- Loads the bean validation configuration for the given class.
- Specified by:
 loadConfiguration in interface BeanValidationConfigurationLoader
 
- 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
public boolean supports(Class clazz)
- Description copied from interface: 
BeanValidationConfigurationLoader 
- Indicates whether the given class is supported by this loader. The 
BeanValidationConfigurationLoader.loadConfiguration(Class) will return
 a validation configuration only for the supported classes. This method should typically be called to determine
 whether the BeanValidationConfigurationLoader.loadConfiguration(Class) should be called.
- Specified by:
 supports in interface BeanValidationConfigurationLoader
 
- Parameters:
 clazz - The class to be checked.
- Returns:
 true if this loader can load a valication configuration for the given class,
         false otherwise.
 
 
setLoaders
public void setLoaders(BeanValidationConfigurationLoader[] loaders)
 
 
getLoaders
public BeanValidationConfigurationLoader[] getLoaders()
 
 
Copyright © 2009. All Rights Reserved.