org.apache.tapestry.engine
Class BaseEngine

java.lang.Object
  extended byorg.apache.tapestry.engine.AbstractEngine
      extended byorg.apache.tapestry.engine.BaseEngine
All Implemented Interfaces:
IEngine, WebRequestServicer
Direct Known Subclasses:
WMLEngine

public class BaseEngine
extends AbstractEngine

Concrete implementation of IEngineused for ordinary applications. All page state information is maintained in the HttpSessionusing instances of org.apache.tapestry.record.SessionPageRecorder.

Author:
Howard Lewis Ship

Field Summary
 
Fields inherited from class org.apache.tapestry.engine.AbstractEngine
VISIT_CLASS_PROPERTY_NAME
 
Constructor Summary
BaseEngine()
           
 
Method Summary
protected  void cleanupAfterRequest(IRequestCycle cycle)
          Removes all page recorders that contain no changes, or are marked for discard.
 IPageRecorder createPageRecorder(java.lang.String pageName, IRequestCycle cycle)
           
 java.util.Collection getActivePageNames()
          Returns an unmodifiable Collectionof the page names for which IPageRecorder instances exist.
 IPageRecorder getPageRecorder(java.lang.String pageName, IRequestCycle cycle)
           
 
Methods inherited from class org.apache.tapestry.engine.AbstractEngine
activateExceptionPage, getClassResolver, getDataSqueezer, getExceptionPageName, getGlobal, getHasVisit, getInfrastructure, getListeners, getLocale, getOutputEncoding, getPropertySource, getScriptSource, getService, getSpecification, getSpecificationSource, getStaleLinkPageName, getStaleSessionPageName, getVisit, getVisit, handlePageRedirectException, handleRedirectException, handleStaleLinkException, handleStaleSessionException, redirect, renderResponse, reportException, service, setLocale, setVisit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseEngine

public BaseEngine()
Method Detail

cleanupAfterRequest

protected void cleanupAfterRequest(IRequestCycle cycle)
Removes all page recorders that contain no changes, or are marked for discard. Subclasses should invoke this implementation in addition to providing thier own.

Specified by:
cleanupAfterRequest in class AbstractEngine

getActivePageNames

public java.util.Collection getActivePageNames()
Returns an unmodifiable Collectionof the page names for which IPageRecorder instances exist.

Specified by:
getActivePageNames in class AbstractEngine

getPageRecorder

public IPageRecorder getPageRecorder(java.lang.String pageName,
                                     IRequestCycle cycle)

createPageRecorder

public IPageRecorder createPageRecorder(java.lang.String pageName,
                                        IRequestCycle cycle)