org.apache.struts.validator
Class ValidatorPlugIn
java.lang.Object
org.apache.struts.validator.ValidatorPlugIn
- PlugIn
public class ValidatorPlugIn
extends java.lang.Object
Loads ValidatorResources
based on
configuration in the struts-config.xml.
Version:
- David Winterfeldt
- Struts 1.1
private static String | RESOURCE_DELIM - Delimitter for Validator resources.
|
static String | VALIDATOR_KEY - Application scope key that
ValidatorResources is stored under.
|
private ModuleConfig | config - The module configuration for our owning module.
|
private static Log | log - Commons Logging instance.
|
private String | pathnames - A comma delimitted list of Validator resource.
|
protected ValidatorResources | resources - The set of Form instances that have been created and initialized,
keyed by the struts form name.
|
private ActionServlet | servlet - The
ActionServlet owning this application.
|
void | destroy() - Gracefully shut down, releasing any resources
that were allocated at initialization.
|
protected void | destroyResources() - Destroy
ValidatorResources .
|
String | getPathnames() - Gets a comma delimitted list of Validator resources.
|
void | init(ActionServlet servlet, ModuleConfig config) - Initialize and load our resources.
|
protected void | initResources() - Initialize the validator resources for this module.
|
void | setPathnames(String pathnames) - Sets a comma delimitted list of Validator resources.
|
RESOURCE_DELIM
private static final String RESOURCE_DELIM
Delimitter for Validator resources.
VALIDATOR_KEY
public static final String VALIDATOR_KEY
Application scope key that ValidatorResources
is stored under.
config
private ModuleConfig config
The module configuration for our owning module.
log
private static Log log
Commons Logging instance.
pathnames
private String pathnames
A comma delimitted list of Validator resource.
resources
protected ValidatorResources resources
The set of Form instances that have been created and initialized,
keyed by the struts form name.
destroy
public void destroy()
Gracefully shut down, releasing any resources
that were allocated at initialization.
- destroy in interface PlugIn
destroyResources
protected void destroyResources()
Destroy ValidatorResources
.
getPathnames
public String getPathnames()
Gets a comma delimitted list of Validator resources.
- comma delimited list of Validator resource path names
init
public void init(ActionServlet servlet,
ModuleConfig config)
throws ServletException
Initialize and load our resources.
- init in interface PlugIn
servlet
- The ActionServlet for our applicationconfig
- The ModuleConfig for our owning module
initResources
protected void initResources()
throws IOException,
ServletException
Initialize the validator resources for this module.
setPathnames
public void setPathnames(String pathnames)
Sets a comma delimitted list of Validator resources.
pathnames
- delimited list of Validator resource path names
Copyright B) 2000-2005 - Apache Software Foundation