Class PageSourceImpl
java.lang.Object
org.apache.tapestry5.internal.services.PageSourceImpl
- All Implemented Interfaces:
PageSource
-
Constructor Summary
ConstructorsConstructorDescriptionPageSourceImpl(PageLoader pageLoader, ComponentRequestSelectorAnalyzer selectorAnalyzer, ComponentDependencyRegistry componentDependencyRegistry, ComponentClassResolver componentClassResolver, PageClassLoaderContextManager pageClassLoaderContextManager, PageCachingReferenceTypeService pageCachingReferenceTypeService, boolean productionMode, boolean multipleClassLoaders, org.slf4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the source's cache of loaded pages.Returns all currently loaded pages.Returns a loaded instance of the indicated page, using the Locale and other information from theComponentResourceSelectorobtained from theComponentRequestSelectorAnalyzer.voidsetupInvalidation(InvalidationEventHub classesHub, InvalidationEventHub templatesHub, InvalidationEventHub messagesHub, ResourceChangeTracker resourceChangeTracker)
-
Constructor Details
-
PageSourceImpl
public PageSourceImpl(PageLoader pageLoader, ComponentRequestSelectorAnalyzer selectorAnalyzer, ComponentDependencyRegistry componentDependencyRegistry, ComponentClassResolver componentClassResolver, PageClassLoaderContextManager pageClassLoaderContextManager, PageCachingReferenceTypeService pageCachingReferenceTypeService, @Symbol("tapestry.production-mode") boolean productionMode, @Symbol("tapestry.multiple-classloaders") boolean multipleClassLoaders, org.slf4j.Logger logger)
-
-
Method Details
-
getPage
Description copied from interface:PageSourceReturns a loaded instance of the indicated page, using the Locale and other information from theComponentResourceSelectorobtained from theComponentRequestSelectorAnalyzer.- Specified by:
getPagein interfacePageSource- Returns:
- existing, or newly created, page instance
-
getPage
-
setupInvalidation
@PostInjection public void setupInvalidation(@ComponentClasses InvalidationEventHub classesHub, @ComponentTemplates InvalidationEventHub templatesHub, @ComponentMessages InvalidationEventHub messagesHub, ResourceChangeTracker resourceChangeTracker) -
clearCache
Description copied from interface:PageSourceClears the source's cache of loaded pages. This occurs when an outside change to the world invalidates created page instances. Introduced to handle the case where a page has aDynamicTemplate, but the underlyingResourceis noticed to have changed.- Specified by:
clearCachein interfacePageSource
-
getAllPages
Description copied from interface:PageSourceReturns all currently loaded pages. This will include any previously loaded pages not yet reclaimed by the garbage collector, and may include the same page loaded for differentComponentResourceSelectors. This is needed for reporting purposes only.- Specified by:
getAllPagesin interfacePageSource- See Also:
-