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 {@link ActionServlet} instance). PlugIn
objectscan be configured in the struts-config.xml
file, without the need to subclass {@link ActionServlet} simply to perform applicationlifecycle activities.
Implementations of this interface must supply a zero-argument constructor for use by {@link ActionServlet}. Configuration can be accomplished by providing standard JavaBeans property setter methods, which will all have been called before the init()
method is invoked.
This interface can be applied to any class, including an Action subclass.
@version $Rev: 421119 $ $Date: 2005-05-14 01:09:32 -0400 (Sat, 14 May 2005)$
@since Struts 1.1