org.apache.beehive.netui.pageflow.handler
Class BaseHandler
Object
BaseHandler
- All Implemented Interfaces:
- Serializable, Handler
public abstract class BaseHandler
- extends Object
- implements Handler, Serializable
Default implementation of the base Handler interface. Simply stores a reference to the ServletContext and offers
access to the previously-registered Handler of the same type (the one that comes before the current one in the
list under <pageflow-handlers>
in beehive-netui-config.xml).
- See Also:
- Serialized Form
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseHandler
protected BaseHandler()
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.