| java.lang.Object org.caramba.validator.AnnotationValidatorPlugIn
AnnotationValidatorPlugIn | public class AnnotationValidatorPlugIn implements PlugIn(Code) | | author: Pieter Degraeuwe |
Method Summary | |
protected Validator | createValidatorFromAnnotation(Field pField, Annotation pAnnotation, ValidatorSettings pSettingsAnnotation) Creates the required
Validator instance for the given field, Annotation and ValidatorSettings. | public void | destroy() Gracefully shut down, releasing any resources
that were allocated at initialization. | protected void | destroyResources() Destroy ValidatorResources . | public ValidatorSet | getValidatorSet(Field pField) | public void | init(CarambaServlet servlet, CarambaConfig carambaConfig) Initialize and load our resources. |
createValidatorFromAnnotation | protected Validator createValidatorFromAnnotation(Field pField, Annotation pAnnotation, ValidatorSettings pSettingsAnnotation)(Code) | | Creates the required
Validator instance for the given field, Annotation and ValidatorSettings.
Override this method if you want to automatically support other Validator annotations than the default ones.
Currently supported Validators:
Required ,
MaxLength ,
NumberRange ,
MinLength ,
RegexPattern ,
Date ,
CustomValidator Parameters: pField - the field for which the validator must be created Parameters: pAnnotation - the annotation for which the Validator must be created Parameters: pSettingsAnnotation - the ValidatorSettings annotation (may be null) |
destroy | public void destroy()(Code) | | Gracefully shut down, releasing any resources
that were allocated at initialization.
|
destroyResources | protected void destroyResources()(Code) | | Destroy ValidatorResources .
|
getValidatorSet | public ValidatorSet getValidatorSet(Field pField)(Code) | | |
init | public void init(CarambaServlet servlet, CarambaConfig carambaConfig) throws ServletException(Code) | | Initialize and load our resources.
Parameters: servlet - The CarambaServlet for our application Parameters: carambaConfig - The CarambaConfig for our owning module throws: javax.servlet.ServletException - if we cannot configure ourselves correctly |
|
|