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 TypeMethodDescriptionvoid
clear()
Clears all dependency information.void
Clears all dependency information for a given component.void
clear
(ComponentPageElement component) Clears all dependency information for a given component.boolean
Tells whether this registry already contans a given class name.void
Tells this service to ignore invalidations in this thread.void
Tells 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.boolean
Returns whether stored dependency information is present.void
listen
(InvalidationEventHub invalidationEventHub) Signs up this registry to invalidation events from a given hub.void
Register all the dependencies of a given class.void
register
(Class<?> component, ClassLoader classLoader) Register all the dependencies of a given class and uses a given classloader to load other classes if needed.void
register
(ComponentPageElement componentPageElement) Register all the dependencies of a given component.void
register
(PlasticField plasticField, MutableComponentModel componentModel) Register a dependency of a component class with another through annotations such asInjectPage
,InjectComponent
andComponent
.void
setupThreadCleanup
(PerthreadManager perthreadManager) void
Writes 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:ComponentDependencyRegistry
Register all the dependencies of a given class.- Specified by:
register
in interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistry
Register all the dependencies of a given class and uses a given classloader to load other classes if needed.- Specified by:
register
in interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistry
Register all the dependencies of a given component.- Specified by:
register
in interfaceComponentDependencyRegistry
-
register
Description copied from interface:ComponentDependencyRegistry
Register a dependency of a component class with another through annotations such asInjectPage
,InjectComponent
andComponent
.- Specified by:
register
in interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistry
Clears all dependency information for a given component.- Specified by:
clear
in interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistry
Clears all dependency information for a given component.- Specified by:
clear
in interfaceComponentDependencyRegistry
-
clear
Description copied from interface:ComponentDependencyRegistry
Clears all dependency information.- Specified by:
clear
in interfaceComponentDependencyRegistry
-
getDependents
Description copied from interface:ComponentDependencyRegistry
Returns the fully qualified names of the direct dependencies of a given component.- Specified by:
getDependents
in interfaceComponentDependencyRegistry
-
getDependencies
public Set<String> getDependencies(String className, ComponentDependencyRegistry.DependencyType type) Description copied from interface:ComponentDependencyRegistry
Returns the fully qualified names of the direct dependencies of a given component and a given dependency type.- Specified by:
getDependencies
in interfaceComponentDependencyRegistry
- See Also:
-
getAllNonPageDependencies
Description copied from interface:ComponentDependencyRegistry
Returns all dependencies of a given class, direct and indirect.- Specified by:
getAllNonPageDependencies
in interfaceComponentDependencyRegistry
- Parameters:
className
- a class name.
-
listen
Description copied from interface:ComponentDependencyRegistry
Signs up this registry to invalidation events from a given hub.- Specified by:
listen
in interfaceComponentDependencyRegistry
-
writeFile
Description copied from interface:ComponentDependencyRegistry
Writes the current component dependency data to a file so it can be reused in a new run later.- Specified by:
writeFile
in interfaceComponentDependencyRegistry
- See Also:
-
contains
Description copied from interface:ComponentDependencyRegistry
Tells whether this registry already contans a given class name.- Specified by:
contains
in interfaceComponentDependencyRegistry
-
getClassNames
Description copied from interface:ComponentDependencyRegistry
Returns the set of all class names in the registry.- Specified by:
getClassNames
in interfaceComponentDependencyRegistry
-
getRootClasses
Description copied from interface:ComponentDependencyRegistry
Returns the set of all root classes (i.e. ones with no dependencies).- Specified by:
getRootClasses
in interfaceComponentDependencyRegistry
-
isStoredDependencyInformationPresent
Description copied from interface:ComponentDependencyRegistry
Returns whether stored dependency information is present.- Specified by:
isStoredDependencyInformationPresent
in interfaceComponentDependencyRegistry
-
disableInvalidations
Description copied from interface:ComponentDependencyRegistry
Tells this service to ignore invalidations in this thread.- Specified by:
disableInvalidations
in interfaceComponentDependencyRegistry
-
enableInvalidations
Description copied from interface:ComponentDependencyRegistry
Tells this service to stop ignoring invalidations in this thread.- Specified by:
enableInvalidations
in interfaceComponentDependencyRegistry
-