Package org.apache.struts2.factory
Interface ValidatorFactory
- All Known Implementing Classes:
DefaultValidatorFactory
public interface ValidatorFactory
Dedicated interface used by
ObjectFactory
to build Validator
-
Method Summary
-
Method Details
-
buildValidator
Validator buildValidator(String className, Map<String, Object> params, Map<String, throws ExceptionObject> extraContext) Build a Validator of the given type and set the parameters on it- Parameters:
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 theActionContext
- Returns:
- a validator instance
- Throws:
Exception
- in case of any errors
-