net.sourceforge.formview.struts.plugin
Class FormViewPlugIn

java.lang.Object
  extended by net.sourceforge.formview.struts.plugin.FormViewPlugIn
All Implemented Interfaces:
org.apache.struts.action.PlugIn

public class FormViewPlugIn
extends java.lang.Object
implements org.apache.struts.action.PlugIn

Description : Created on 19 janv. 2006

Author:
azerr

Field Summary
protected  FormViewResources resources
          The set of Form instances that have been created and initialized, keyed by the struts form name.
 
Constructor Summary
FormViewPlugIn()
           
 
Method Summary
 void destroy()
           
protected  void destroyResources()
          Destroy FormViewResources.
 java.lang.String getDisplayerConfig()
          Gets a comma delimitted list of DisplayerConfig resources.
 java.lang.String getFormViewConfig()
          Gets a comma delimitted list of FormView resources.
 java.lang.String getValidatorConfig()
          Gets a comma delimitted list of Validator resources.
 void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
           
protected  void initFormViewResources()
          Initialize the form view resources for this module.
 void mergeWithDisplayerConfig()
           
protected  void mergeWithValidator()
          Initialize the validator resources for this module.
 void setDisplayerConfig(java.lang.String displayerConfig)
          Sets a comma delimitted list of DisplayerConfig resources.
 void setFormViewConfig(java.lang.String formViewConfig)
          Sets a comma delimitted list of FormView resources.
 void setValidatorConfig(java.lang.String validatorConfig)
          Sets a comma delimitted list of Validator resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

protected FormViewResources resources
The set of Form instances that have been created and initialized, keyed by the struts form name.

Constructor Detail

FormViewPlugIn

public FormViewPlugIn()
Method Detail

getFormViewConfig

public java.lang.String getFormViewConfig()
Gets a comma delimitted list of FormView resources.

Returns:
comma delimited list of FormView resource path names

setFormViewConfig

public void setFormViewConfig(java.lang.String formViewConfig)
Sets a comma delimitted list of FormView resources.

Parameters:
formViewConfig - delimited list of FormView resource path names

getValidatorConfig

public java.lang.String getValidatorConfig()
Gets a comma delimitted list of Validator resources.

Returns:
comma delimited list of Validator resource path names

setValidatorConfig

public void setValidatorConfig(java.lang.String validatorConfig)
Sets a comma delimitted list of Validator resources.

Parameters:
validatorConfig - delimited list of Validator resource path names

getDisplayerConfig

public java.lang.String getDisplayerConfig()
Gets a comma delimitted list of DisplayerConfig resources.

Returns:
comma delimited list of DisplayerConfig resource path names

setDisplayerConfig

public void setDisplayerConfig(java.lang.String displayerConfig)
Sets a comma delimitted list of DisplayerConfig resources.

Parameters:
displayerConfig - delimited list of DisplayerConfig resource path names

init

public void init(org.apache.struts.action.ActionServlet servlet,
                 org.apache.struts.config.ModuleConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface org.apache.struts.action.PlugIn
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface org.apache.struts.action.PlugIn

initFormViewResources

protected void initFormViewResources()
                              throws java.io.IOException,
                                     javax.servlet.ServletException
Initialize the form view resources for this module.

Throws:
java.io.IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources

mergeWithValidator

protected void mergeWithValidator()
                           throws java.io.IOException,
                                  javax.servlet.ServletException
Initialize the validator resources for this module.

Throws:
java.io.IOException - if an input/output error is encountered
javax.servlet.ServletException - if we cannot initialize these resources

mergeWithDisplayerConfig

public void mergeWithDisplayerConfig()
                              throws java.io.IOException,
                                     javax.servlet.ServletException
Throws:
java.io.IOException
javax.servlet.ServletException

destroyResources

protected void destroyResources()
Destroy FormViewResources.



Copyright 2006 null. All Rights Reserved.