|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.javalid.external.jsf.extension.JavalidExtensionJsfImpl
public class JavalidExtensionJsfImpl
The JaValid JSF extension implementation. This class is responsible for the jsf extension.
| Field Summary | |
|---|---|
static java.lang.String |
CONFIG_FILE_DECL_NAME
Parameter name, if set the declarative configuration file is loaded. |
static java.lang.String |
LOOKUP_CLASS_NAME
|
static java.lang.String |
LOOKUP_CLASS_VALUE
|
static java.lang.String |
VALIDATOR_CLASS_NAME
|
static java.lang.String |
VALIDATOR_CLASS_VALUE
|
| Constructor Summary | |
|---|---|
JavalidExtensionJsfImpl()
|
|
| Method Summary | |
|---|---|
void |
afterValidation(JvConfigurationWrapper wrapper)
Once validation is done, this method is called and allows an extension to perform cleanup (if necessary). |
void |
beforeValidation(JvConfigurationWrapper wrapper)
Before a the validation starts this methid is called, it can do some initialization or other things that might be needed. |
void |
configurationLoadingComplete(JvConfigurationWrapper wrapper)
This method is called by the configuration loader as soon as it is done loading everything needed. |
void |
destroy()
Called once the the AnnotationValidator's destroy() method has been called. |
JsfConfigurationDeclarative |
getJsfConfigurationDeclarative()
Returns the configuration for declarative validation or null if it was not loaded. |
void |
init(java.util.Map<java.lang.String,java.lang.String> parameters,
JvConfigurationWrapper wrapper)
This method is called only once, as soon as the extension is created (after its constructor has been called) and provides you with the parameters you might have passed to this extension. |
java.lang.Object |
lookupBean(java.lang.String name)
Based on given name attempts to lookup a bean. |
java.util.List<ValidationMessage> |
validate(java.lang.Object currentInstance,
java.lang.String prefixPath,
java.lang.String beanNameExpression,
JvMethod jvMethod)
This method is called by the JV framework if an object to validate has defined a lookup and thus must be validated through a bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VALIDATOR_CLASS_NAME
public static final java.lang.String VALIDATOR_CLASS_VALUE
public static final java.lang.String LOOKUP_CLASS_NAME
public static final java.lang.String LOOKUP_CLASS_VALUE
public static final java.lang.String CONFIG_FILE_DECL_NAME
| Constructor Detail |
|---|
public JavalidExtensionJsfImpl()
| Method Detail |
|---|
public void init(java.util.Map<java.lang.String,java.lang.String> parameters,
JvConfigurationWrapper wrapper)
JavalidExtension
init in interface JavalidExtensionparameters - Map with parameters passed to this extension (keys are the name).wrapper - The config wrapperpublic void configurationLoadingComplete(JvConfigurationWrapper wrapper)
JavalidExtensionIf you need parameters from the config file, save them in the init() method, which is called on creation of this extension.
configurationLoadingComplete in interface JavalidExtensionwrapper - The config wrapperpublic void beforeValidation(JvConfigurationWrapper wrapper)
JavalidExtension
beforeValidation in interface JavalidExtensionwrapper - The config wrapperpublic void afterValidation(JvConfigurationWrapper wrapper)
JavalidExtension
afterValidation in interface JavalidExtensionwrapper - The config wrapperpublic void destroy()
JavalidExtension
destroy in interface JavalidExtensionpublic java.lang.Object lookupBean(java.lang.String name)
JavalidExtensionLookup
lookupBean in interface JavalidExtensionLookupname - The name to lookup
public java.util.List<ValidationMessage> validate(java.lang.Object currentInstance,
java.lang.String prefixPath,
java.lang.String beanNameExpression,
JvMethod jvMethod)
JavalidExtensionLookup
validate in interface JavalidExtensionLookupcurrentInstance - The current instance for validationprefixPath - The prefix path for this instancebeanNameExpression - The name of the spring bean to usejvMethod - The method containing the actual call to be performed on the bean with ALL needed parameters.
public JsfConfigurationDeclarative getJsfConfigurationDeclarative()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||