Package org.apache.struts2.validator
Class DefaultValidatorFactory
java.lang.Object
org.apache.struts2.validator.DefaultValidatorFactory
- All Implemented Interfaces:
- Initializable,- ValidatorFactory
Default validator factory
- Version:
- $Date$ $Id$
- Author:
- Jason Carreira, James House
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultValidatorFactory(ObjectFactory objectFactory, ValidatorFileParser parser) 
- 
Method SummaryModifier and TypeMethodDescriptionGet a Validator that matches the given configuration.voidinit()Use this method to initialise your bean, the whole dependency graph was already builtLookup to get the FQ classname of the given validator name.voidregisterValidator(String name, String className) Registers the given validator to the existing map of validators.
- 
Field Details- 
validators
- 
objectFactory
- 
validatorFileParser
 
- 
- 
Constructor Details- 
DefaultValidatorFactory
 
- 
- 
Method Details- 
initpublic void init()Description copied from interface:InitializableUse this method to initialise your bean, the whole dependency graph was already built- Specified by:
- initin interface- Initializable
 
- 
getValidatorDescription copied from interface:ValidatorFactoryGet a Validator that matches the given configuration.- Specified by:
- getValidatorin interface- ValidatorFactory
- Parameters:
- cfg- the configurator.
- Returns:
- the validator.
 
- 
registerValidatorDescription copied from interface:ValidatorFactoryRegisters the given validator to the existing map of validators. This will add to the existing list.- Specified by:
- registerValidatorin interface- ValidatorFactory
- Parameters:
- name- name of validator to add.
- className- the FQ classname of the validator.
 
- 
lookupRegisteredValidatorTypeDescription copied from interface:ValidatorFactoryLookup to get the FQ classname of the given validator name.- Specified by:
- lookupRegisteredValidatorTypein interface- ValidatorFactory
- Parameters:
- name- name of validator to lookup.
- Returns:
- the found FQ classname
 
 
-