public class DefaultValidatorFactory extends Object implements ValidatorFactory
Constructor and Description |
---|
DefaultValidatorFactory() |
Modifier and Type | Method and Description |
---|---|
Validator |
buildValidator(String className,
Map<String,Object> params,
Map<String,Object> extraContext)
Build a Validator of the given type and set the parameters on it
|
void |
setObjectFactory(ObjectFactory objectFactory) |
void |
setReflectionProvider(ReflectionProvider reflectionProvider) |
public void setObjectFactory(ObjectFactory objectFactory)
public void setReflectionProvider(ReflectionProvider reflectionProvider)
public Validator buildValidator(String className, Map<String,Object> params, Map<String,Object> extraContext) throws Exception
ValidatorFactory
buildValidator
in interface ValidatorFactory
className
- the type of Validator to buildparams
- property name -> value Map to set onto the Validator instanceextraContext
- a Map of extra context which uses the same keys as the ActionContext
Exception
- in case of any errorsCopyright © 2000–2020 Apache Software Foundation. All rights reserved.