public class PageSourceImpl extends Object implements PageSource, InvalidationListener
Constructor and Description |
---|
PageSourceImpl(PageLoader pageLoader,
ComponentRequestSelectorAnalyzer selectorAnalyzer) |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the source's cache of loaded pages.
|
Set<Page> |
getAllPages()
Returns all currently loaded pages.
|
Page |
getPage(String canonicalPageName)
Returns a loaded instance of the indicated page, using the Locale and other information
from the
ComponentResourceSelector obtained from the ComponentRequestSelectorAnalyzer . |
void |
objectWasInvalidated()
Invoked to indicate that some object is invalid.
|
public PageSourceImpl(PageLoader pageLoader, ComponentRequestSelectorAnalyzer selectorAnalyzer)
public void objectWasInvalidated()
InvalidationListener
objectWasInvalidated
in interface InvalidationListener
public Page getPage(String canonicalPageName)
PageSource
ComponentResourceSelector
obtained from the ComponentRequestSelectorAnalyzer
.getPage
in interface PageSource
public void clearCache()
PageSource
DynamicTemplate
, but the
underlying Resource
is noticed to have changed.clearCache
in interface PageSource
public Set<Page> getAllPages()
PageSource
ComponentResourceSelector
s. This is needed
for reporting purposes only.getAllPages
in interface PageSource
PageCatalog
Copyright © 2003-2012 The Apache Software Foundation.