You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Ron Smith <ro...@rpsenterprises.com> on 2001/06/27 06:55:43 UTC

Submitting: Extensions package

I didn't like subclassing ActionServlet to manually
initialize the subsystems/extensions for each application,
so I created some classes that allow subsystems/extensions
to be instantiated and initialized based on entries in
the struts-config.xml.  I'm using it for things like
initializing a logging subsystem, database subsystem,
transformations subsystem, etc..

This package consists of two classes:
ExtensionsServlet : ActionServlet subclass w/extensions capability
Extension : Base class for all extensions

The ExtensionsServlet invokes callbacks on the Extension
classes at certain points of its lifecycle, such as
initialization (only one right now).

I'd like to tie this into the event/listener model
enhancement at some point so that an extension could
register to be notified of any event and act upon it.


The following link contains some documentation and the
code:
http://www.rpsenterprises.com/struts/index.html

--Ron S