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)
PageSourceComponentResourceSelector 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()
PageSourceDynamicTemplate, but the
underlying Resource is noticed to have changed.clearCache in interface PageSourcepublic Set<Page> getAllPages()
PageSourceComponentResourceSelectors. This is needed
for reporting purposes only.getAllPages in interface PageSourcePageCatalog5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.