Class PageClassLoaderContextManagerImpl
java.lang.Object
org.apache.tapestry5.services.pageload.PageClassLoaderContextManagerImpl
- All Implemented Interfaces:
PageClassLoaderContextManager
public class PageClassLoaderContextManagerImpl
extends Object
implements PageClassLoaderContextManager
Default PageClassLoaderContextManager implementation.
- Since:
- 5.8.3
-
Constructor Summary
ConstructorsConstructorDescriptionPageClassLoaderContextManagerImpl(ComponentDependencyRegistry componentDependencyRegistry, ComponentClassResolver componentClassResolver, InternalComponentInvalidationEventHub invalidationHub, InvalidationEventHub componentClassesInvalidationEventHub, boolean productionMode, boolean multipleClassLoaders) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears any state held by this manager.voidRemoves one specific class from this manager, invalidating the context where it is.Processes a class, given its class name and the root context.Class<?>getClassInstance(Class<?> clasz, String pageName) Returns the Class instance appropriate for a given component given a page name.getRoot()Returns the root context.voidinitialize(PageClassLoaderContext root, Function<ClassLoader, PlasticProxyFactory> plasticProxyFactoryProvider) Initializes this service with the root context and a Plastic proxy factory provider.invalidate(PageClassLoaderContext... contexts) Invalidates page classloader contexts and returns a set containing the names of all classes that should be invalidated.voidInvalidates page classloader contexts and invalidates the classes in the context as well.voidInvalidates the "unknown" page classloader context context.booleanReturns whether contexts are being merged.voidpreload()Preloads all data, first by collecting dependency data for all existing pages and the components, mixins and superclasses they use, then creating the page classloader contexts.voidPreloads the page classloader contexts.
-
Constructor Details
-
PageClassLoaderContextManagerImpl
public PageClassLoaderContextManagerImpl(ComponentDependencyRegistry componentDependencyRegistry, ComponentClassResolver componentClassResolver, InternalComponentInvalidationEventHub invalidationHub, @ComponentClasses InvalidationEventHub componentClassesInvalidationEventHub, @Symbol("tapestry.production-mode") boolean productionMode, @Symbol("tapestry.multiple-classloaders") boolean multipleClassLoaders)
-
-
Method Details
-
invalidateUnknownContext
Description copied from interface:PageClassLoaderContextManagerInvalidates the "unknown" page classloader context context.- Specified by:
invalidateUnknownContextin interfacePageClassLoaderContextManager
-
initialize
public void initialize(PageClassLoaderContext root, Function<ClassLoader, PlasticProxyFactory> plasticProxyFactoryProvider) Description copied from interface:PageClassLoaderContextManagerInitializes this service with the root context and a Plastic proxy factory provider. Method can only be called once. None of the parameters may be null.- Specified by:
initializein interfacePageClassLoaderContextManager
-
get
Description copied from interface:PageClassLoaderContextManagerProcesses a class, given its class name and the root context.- Specified by:
getin interfacePageClassLoaderContextManager- Parameters:
className- the class fully qualified name. ClassLoader} and returns a new PlasticProxyFactory.- Returns:
- the
PageClassLoaderContextassociated with that class.
-
clear
Description copied from interface:PageClassLoaderContextManagerRemoves one specific class from this manager, invalidating the context where it is.- Specified by:
clearin interfacePageClassLoaderContextManager
-
invalidate
Description copied from interface:PageClassLoaderContextManagerInvalidates page classloader contexts and returns a set containing the names of all classes that should be invalidated.- Specified by:
invalidatein interfacePageClassLoaderContextManager
-
invalidateAndFireInvalidationEvents
Description copied from interface:PageClassLoaderContextManagerInvalidates page classloader contexts and invalidates the classes in the context as well.- Specified by:
invalidateAndFireInvalidationEventsin interfacePageClassLoaderContextManager
-
getRoot
Description copied from interface:PageClassLoaderContextManagerReturns the root context.- Specified by:
getRootin interfacePageClassLoaderContextManager
-
isMerging
Description copied from interface:PageClassLoaderContextManagerReturns whether contexts are being merged.- Specified by:
isMergingin interfacePageClassLoaderContextManager
-
clear
Description copied from interface:PageClassLoaderContextManagerClears any state held by this manager.- Specified by:
clearin interfacePageClassLoaderContextManager
-
getClassInstance
Description copied from interface:PageClassLoaderContextManagerReturns the Class instance appropriate for a given component given a page name.- Specified by:
getClassInstancein interfacePageClassLoaderContextManager- Parameters:
clasz- the class instance.pageName- the page name.- Returns:
- a Class instance.
-
preload
Description copied from interface:PageClassLoaderContextManagerPreloads all data, first by collecting dependency data for all existing pages and the components, mixins and superclasses they use, then creating the page classloader contexts.- Specified by:
preloadin interfacePageClassLoaderContextManager
-
preloadContexts
Description copied from interface:PageClassLoaderContextManagerPreloads the page classloader contexts.- Specified by:
preloadContextsin interfacePageClassLoaderContextManager
-