Class ComponentDependencyRegistryImpl
java.lang.Object
org.apache.tapestry5.internal.services.ComponentDependencyRegistryImpl
- All Implemented Interfaces:
ComponentDependencyRegistry
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tapestry5.internal.services.ComponentDependencyRegistry
ComponentDependencyRegistry.DependencyType -
Field Summary
Fields inherited from interface org.apache.tapestry5.internal.services.ComponentDependencyRegistry
FILENAME -
Constructor Summary
ConstructorsConstructorDescriptionComponentDependencyRegistryImpl(PageClassLoaderContextManager pageClassLoaderContextManager, PlasticManager plasticManager, ComponentClassResolver componentClassResolver, TemplateParser templateParser, ComponentTemplateLocator componentTemplateLocator, String componentDependencyFile, boolean productionMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all dependency information.voidClears all dependency information for a given component.voidclear(ComponentPageElement component) Clears all dependency information for a given component.booleanTells whether this registry already contans a given class name.voidTells this service to ignore invalidations in this thread.voidTells this service to stop ignoring invalidations in this thread.getAllNonPageDependencies(String className) Returns all dependencies of a given class, direct and indirect.Returns the set of all class names in the registry.getDependencies(String className, ComponentDependencyRegistry.DependencyType type) Returns the fully qualified names of the direct dependencies of a given component and a given dependency type.getDependents(String className) Returns the fully qualified names of the direct dependencies of a given component.Returns the set of all root classes (i.e.booleanReturns whether stored dependency information is present.voidlisten(InvalidationEventHub invalidationEventHub) Signs up this registry to invalidation events from a given hub.voidRegister all the dependencies of a given class.voidregister(Class<?> component, ClassLoader classLoader) Register all the dependencies of a given class and uses a given classloader to load other classes if needed.voidregister(ComponentPageElement componentPageElement) Register all the dependencies of a given component.voidregister(PlasticField plasticField, MutableComponentModel componentModel) Register a dependency of a component class with another through annotations such asInjectPage,InjectComponentandComponent.voidsetupThreadCleanup(PerthreadManager perthreadManager) voidWrites the current component dependency data to a file so it can be reused in a new run later.
-
Constructor Details
-
ComponentDependencyRegistryImpl
public ComponentDependencyRegistryImpl(PageClassLoaderContextManager pageClassLoaderContextManager, PlasticManager plasticManager, ComponentClassResolver componentClassResolver, TemplateParser templateParser, ComponentTemplateLocator componentTemplateLocator, @Symbol("tapestry.component-dependency-file") String componentDependencyFile, @Symbol("tapestry.production-mode") boolean productionMode)
-
-
Method Details
-
setupThreadCleanup
-
register
Description copied from interface:ComponentDependencyRegistryRegister all the dependencies of a given class.- Specified by:
registerin interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistryRegister all the dependencies of a given class and uses a given classloader to load other classes if needed.- Specified by:
registerin interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistryRegister all the dependencies of a given component.- Specified by:
registerin interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistryRegister a dependency of a component class with another through annotations such asInjectPage,InjectComponentandComponent.- Specified by:
registerin interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistryClears all dependency information for a given component.- Specified by:
clearin interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistryClears all dependency information for a given component.- Specified by:
clearin interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistryClears all dependency information.- Specified by:
clearin interfaceComponentDependencyRegistry
-
getDependents
Description copied from interface:ComponentDependencyRegistryReturns the fully qualified names of the direct dependencies of a given component.- Specified by:
getDependentsin interfaceComponentDependencyRegistry
-
getDependencies
public Set<String> getDependencies(String className, ComponentDependencyRegistry.DependencyType type) Description copied from interface:ComponentDependencyRegistryReturns the fully qualified names of the direct dependencies of a given component and a given dependency type.- Specified by:
getDependenciesin interfaceComponentDependencyRegistry- See Also:
-
getAllNonPageDependencies
Description copied from interface:ComponentDependencyRegistryReturns all dependencies of a given class, direct and indirect.- Specified by:
getAllNonPageDependenciesin interfaceComponentDependencyRegistry- Parameters:
className- a class name.
-
listen
Description copied from interface:ComponentDependencyRegistrySigns up this registry to invalidation events from a given hub.- Specified by:
listenin interfaceComponentDependencyRegistry
-
writeFile
Description copied from interface:ComponentDependencyRegistryWrites the current component dependency data to a file so it can be reused in a new run later.- Specified by:
writeFilein interfaceComponentDependencyRegistry- See Also:
-
contains
Description copied from interface:ComponentDependencyRegistryTells whether this registry already contans a given class name.- Specified by:
containsin interfaceComponentDependencyRegistry
-
getClassNames
Description copied from interface:ComponentDependencyRegistryReturns the set of all class names in the registry.- Specified by:
getClassNamesin interfaceComponentDependencyRegistry
-
getRootClasses
Description copied from interface:ComponentDependencyRegistryReturns the set of all root classes (i.e. ones with no dependencies).- Specified by:
getRootClassesin interfaceComponentDependencyRegistry
-
isStoredDependencyInformationPresent
Description copied from interface:ComponentDependencyRegistryReturns whether stored dependency information is present.- Specified by:
isStoredDependencyInformationPresentin interfaceComponentDependencyRegistry
-
disableInvalidations
Description copied from interface:ComponentDependencyRegistryTells this service to ignore invalidations in this thread.- Specified by:
disableInvalidationsin interfaceComponentDependencyRegistry
-
enableInvalidations
Description copied from interface:ComponentDependencyRegistryTells this service to stop ignoring invalidations in this thread.- Specified by:
enableInvalidationsin interfaceComponentDependencyRegistry
-