net.sourceforge.jsptabcontrol.struts.plugin
Class JSPTabControlPlugin

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

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

Loads JSPTabControlResources based on configuration in the jsptabcontrol-config.xml file.

Version:
1.0.0
Author:
Angelo ZERR

Field Summary
protected  JSPTabControlResources resources
          The set of JSPTabControlResources instances that have been created and initialized.
 
Constructor Summary
JSPTabControlPlugin()
           
 
Method Summary
 void destroy()
           
protected  void destroyResources()
          Destroy JSPTabControlResources.
 java.lang.String getJspTabControlConfig()
          Gets a comma delimitted list of JSPTabControl resources.
 void init(org.apache.struts.action.ActionServlet servlet, org.apache.struts.config.ModuleConfig config)
          Initialize and load our resources.
protected  void initJSPTabControlResources()
          Initialize the jsptabcontrol resources for this module.
 void setJspTabControlConfig(java.lang.String jspTabControlConfig)
          Sets a comma delimitted list of JSPTabControl resources.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

protected JSPTabControlResources resources
The set of JSPTabControlResources instances that have been created and initialized.

Constructor Detail

JSPTabControlPlugin

public JSPTabControlPlugin()
Method Detail

getJspTabControlConfig

public java.lang.String getJspTabControlConfig()
Gets a comma delimitted list of JSPTabControl resources.

Returns:
comma delimited list of JSPTabControl resource path names

setJspTabControlConfig

public void setJspTabControlConfig(java.lang.String jspTabControlConfig)
Sets a comma delimitted list of JSPTabControl resources.

Parameters:
jspTabControlConfig - delimited list of JSPTabControl resource path names

init

public void init(org.apache.struts.action.ActionServlet servlet,
                 org.apache.struts.config.ModuleConfig config)
          throws javax.servlet.ServletException
Initialize and load our resources.

Specified by:
init in interface org.apache.struts.action.PlugIn
Parameters:
servlet - The ActionServlet for our application
config - The ModuleConfig for our owning module
Throws:
javax.servlet.ServletException - if we cannot configure ourselves correctly

destroy

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

initJSPTabControlResources

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

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

destroyResources

protected void destroyResources()
Destroy JSPTabControlResources.



Copyright 2007 null. All Rights Reserved.