org.apache.tapestry5.internal.services
Class RequestPageCacheImpl
java.lang.Object
org.apache.tapestry5.internal.services.RequestPageCacheImpl
- All Implemented Interfaces:
- EventListener, RequestPageCache, ThreadCleanupListener
public class RequestPageCacheImpl
- extends Object
- implements RequestPageCache, ThreadCleanupListener
|
Method Summary |
Page |
get(String pageName)
Gets the page via its page name, in the current locale. |
void |
threadDidCleanup()
At the end of the request, when the thread cleanup event occurs, release any pages attached to the request back
to the page pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestPageCacheImpl
public RequestPageCacheImpl(PagePool pagePool,
ComponentClassResolver resolver)
get
public Page get(String pageName)
- Description copied from interface:
RequestPageCache
- Gets the page via its page name, in the current locale. The logical page name is resolved to a class name, which
is used to obtain the page (from the page pool). Note that under certain circumstances, a page may have multiple
names (even beyond simple case-insensitivity), and RequestPageCache caches correctly.
- Specified by:
get in interface RequestPageCache
- Parameters:
pageName - the name of the page to retrieve (this is the logical page name, not the fully qualified class
name)
- Returns:
- a page instance reserved for this request
threadDidCleanup
public void threadDidCleanup()
- At the end of the request, when the thread cleanup event occurs, release any pages attached to the request back
to the page pool.
- Specified by:
threadDidCleanup in interface ThreadCleanupListener
Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.