|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.bean.conf.loader.SimpleBeanValidationConfigurationLoader
public class SimpleBeanValidationConfigurationLoader
A simple implementation of BeanValidationConfigurationLoader
that enables registration of bean validation
configuration with classes.
Constructor Summary | |
---|---|
SimpleBeanValidationConfigurationLoader()
Constructs a new SimpleBeanValidationConfigurationLoader. |
Method Summary | |
---|---|
BeanValidationConfiguration |
loadConfiguration(Class clazz)
Returns the bean validation configuration that is associated with the given class, or one of its super classes. |
void |
setClassValidation(Class clazz,
BeanValidationConfiguration configuration)
Registeres the given bean validation configuration with a given class. |
boolean |
supports(Class clazz)
Indicates whether the given class is supported by this loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleBeanValidationConfigurationLoader()
Method Detail |
---|
public boolean supports(Class clazz)
BeanValidationConfigurationLoader
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.
supports
in interface BeanValidationConfigurationLoader
clazz
- The class to be checked.
true
if this loader can load a valication configuration for the given class,
false
otherwise.BeanValidationConfigurationLoader.supports(Class)
public BeanValidationConfiguration loadConfiguration(Class clazz)
null
if no such association was found.
loadConfiguration
in interface BeanValidationConfigurationLoader
clazz
- The class of which the validation configuration is requested.
public void setClassValidation(Class clazz, BeanValidationConfiguration configuration)
clazz
- The class to which the given validation configuration will be associated.configuration
- The bean validation configuration to associate with the given class.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |