org.apache.beehive.netui.pageflow.handler
Class BaseHandler

Object
  extended by BaseHandler
All Implemented Interfaces:
Serializable, Handler
Direct Known Subclasses:
DefaultHandler

public abstract class BaseHandler
extends Object
implements Handler, Serializable

Default implementation of the base Handler interface. Simply stores a reference to the ServletContext.

See Also:
Serialized Form

Constructor Summary
protected BaseHandler()
           
 
Method Summary
protected  HandlerConfig getConfig()
           
protected  Handler getPreviousHandler()
           
protected  ServletContext getServletContext()
           
 void init(HandlerConfig handlerConfig, Handler previousHandler, ServletContext servletContext)
          Initialize.
 void reinit(ServletContext servletContext)
          Reinitialize, normally used to reconsitute transient data that was lost during serialization.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseHandler

protected BaseHandler()
Method Detail

init

public void init(HandlerConfig handlerConfig,
                 Handler previousHandler,
                 ServletContext servletContext)
Initialize.

Specified by:
init in interface Handler
Parameters:
handlerConfig - the configuration object for this Handler.
previousHandler - the previously-registered Handler, which this one can adapt.
servletContext - the ServletContext for the webapp that is creating this object.

getServletContext

protected final ServletContext getServletContext()

getPreviousHandler

protected Handler getPreviousHandler()

getConfig

protected HandlerConfig getConfig()

reinit

public void reinit(ServletContext servletContext)
Description copied from interface: Handler
Reinitialize, normally used to reconsitute transient data that was lost during serialization.

Specified by:
reinit in interface Handler
Parameters:
servletContext - the ServletContext for the webapp that is reinitializing this object.