|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.primix.tapestry.engine.AbstractEngine | +--com.primix.tapestry.engine.SimpleEngine
Concrete implementation of IEngine
used for relatively
small applications. All page state information is maintained in memory. Since
the instance is stored within the HttpSession
, all page state information
will be carried along to other servers in the cluster.
Fields inherited from class com.primix.tapestry.engine.AbstractEngine |
HELPER_BEAN_POOL_NAME, PAGE_SOURCE_NAME, pageSource, SCRIPT_SOURCE_NAME, specification, SPECIFICATION_SOURCE_NAME, specificationSource, TEMPLATE_SOURCE_NAME, templateSource, VISIT_CLASS_PROPERTY_NAME |
Fields inherited from interface com.primix.tapestry.IEngine |
EXCEPTION_PAGE, HOME_PAGE, STALE_LINK_PAGE, STALE_SESSION_PAGE |
Constructor Summary | |
SimpleEngine()
|
Method Summary | |
protected void |
cleanupAfterRequest(IRequestCycle cycle)
Removes all page recorders that contain no changes. |
IPageRecorder |
createPageRecorder(java.lang.String pageName,
IRequestCycle cycle)
Creates a new page recorder for the named page. |
void |
forgetPage(java.lang.String name)
Forgets changes to the named page by discarding the page recorder for the page. |
java.util.Collection |
getActivePageNames()
Returns an unmodifiable Collection of the page names for which
IPageRecorder instances exist. |
IPageRecorder |
getPageRecorder(java.lang.String pageName)
Returns a recorder for a page. |
void |
readExternal(java.io.ObjectInput in)
Restores the object state as written by writeExternal(ObjectOutput) . |
void |
writeExternal(java.io.ObjectOutput out)
Invokes the superclass implementation, then writes the number of recorders as an int (may be zero). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleEngine()
Method Detail |
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
writeExternal(ObjectOutput)
.readExternal
in class AbstractEngine
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
For each recorder, writes
String
)
SimplePageRecorder
)
writeExternal
in class AbstractEngine
protected void cleanupAfterRequest(IRequestCycle cycle)
cleanupAfterRequest
in class AbstractEngine
public void forgetPage(java.lang.String name)
IEngine
This should be done if the page is no longer needed or relevant, otherwise the properties for the page will continue to be recorded by the engine, which is wasteful (especially if clustering or failover is employed on the application).
Throws an ApplicationRuntimeException
if there are uncommitted changes
for the recorder (in the current request cycle).
public java.util.Collection getActivePageNames()
Collection
of the page names for which
IPageRecorder
instances exist.getActivePageNames
in class AbstractEngine
public IPageRecorder getPageRecorder(java.lang.String pageName)
IEngine
com.primix.tapestry.IEngine
IEngine.createPageRecorder(String, IRequestCycle)
public IPageRecorder createPageRecorder(java.lang.String pageName, IRequestCycle cycle)
IEngine
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |