org.struts.velocity.demo.util
Class InitPlugin

java.lang.Object
  extended byorg.struts.velocity.demo.util.InitPlugin
All Implemented Interfaces:
org.apache.struts.action.PlugIn

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

Initplugin must be called after the StrutsHivePlugin is called, because StrutsHivePlugin initializes the database connection.

Since:
JDK 1.4
Version:
$Revision: 1.6 $
Author:
Manfred Wolff

Constructor Summary
InitPlugin()
           
 
Method Summary
 void destroy()
          Will be called, if the servlet cointainer goes down.
 void init(org.apache.struts.action.ActionServlet actionServlet, org.apache.struts.config.ModuleConfig moduleConfig)
          Inits the plugin
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitPlugin

public InitPlugin()
Method Detail

init

public void init(org.apache.struts.action.ActionServlet actionServlet,
                 org.apache.struts.config.ModuleConfig moduleConfig)
          throws javax.servlet.ServletException
Inits the plugin

Specified by:
init in interface org.apache.struts.action.PlugIn
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Will be called, if the servlet cointainer goes down.

Specified by:
destroy in interface org.apache.struts.action.PlugIn


Copyright © 2005 Struts-it comunity. All Rights Reserved.