com.opensymphony.xwork2.factory

## Interface ValidatorFactory

- All Known Implementing Classes:
    DefaultValidatorFactory

      public interface ValidatorFactory

  Dedicated interface used by `ObjectFactory` to build `Validator`

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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

- - ### Method Detail

    - #### buildValidator

          Validator buildValidator(String className,
                                   Map<String,Object> params,
                                   Map<String,Object> extraContext)
                            throws Exception

      Build a Validator of the given type and set the parameters on it
      Parameters:
        `className` - the type of Validator to build
        `params` - property name -> value Map to set onto the Validator instance
        `extraContext` - a Map of extra context which uses the same keys as the `ActionContext`
      Returns:
        a validator instance
      Throws:
        `Exception` - in case of any errors

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.