org.apache.struts.action
インタフェース PlugIn

既知の実装クラスの一覧:
ModuleConfigVerifier, TilesPlugin, ValidatorPlugIn

public interface PlugIn

A PlugIn is a configuration wrapper for a module-specific resource or service that needs to be notified about application startup and application shutdown events (corresponding to when the container calls init() and destroy() on the corresponding ActionServlet instance). PlugIn Actions can be configured in the struts-config.xml file, without the need to subclass ActionServlet simply to perform application lifecycle activities.

Implementations of this interface must supply a zero-argument constructor for use by ActionServlet. Configuration can be accomplished by providing standard JavaBeans property setter methods, which will all have been called before the init() method is invoked.

導入されたバージョン:
Struts 1.1
バージョン:
$Revision: 1.2 $ $Date: 2003/12/09 13:46:16 $
作成者:
Craig R. McClanahan
翻訳者:
校正者:
翻訳状況:
訳者募集中
翻訳更新日:

メソッドの概要
 void destroy()
          Receive notification that our owning module is being shut down.
 void init(ActionServlet servlet, ModuleConfig config)
          Receive notification that the specified module is being started up.
 

メソッドの詳細

destroy

public void destroy()

Receive notification that our owning module is being shut down.


init

public void init(ActionServlet servlet,
                 ModuleConfig config)
          throws javax.servlet.ServletException

Receive notification that the specified module is being started up.

パラメータ:
servlet - ActionServlet that is managing all the modules in this web application
config - ModuleConfig for the module with which this plug-in is associated
例外:
javax.servlet.ServletException - if this PlugIn cannot be successfully initialized


このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2003 - Apache Software Foundation