public class PageSourceImpl extends Object implements PageSource
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 |
setupInvalidation(InvalidationEventHub classesHub,
InvalidationEventHub templatesHub,
InvalidationEventHub messagesHub,
ResourceChangeTracker resourceChangeTracker) |
public PageSourceImpl(PageLoader pageLoader, ComponentRequestSelectorAnalyzer selectorAnalyzer)
public Page getPage(String canonicalPageName)
PageSource
ComponentResourceSelector
obtained from the ComponentRequestSelectorAnalyzer
.getPage
in interface PageSource
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub classesHub, @ComponentTemplates InvalidationEventHub templatesHub, @ComponentMessages InvalidationEventHub messagesHub, ResourceChangeTracker resourceChangeTracker)
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
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.