public class DefaultCockpitZulCache extends Object implements CockpitZulCache
CockpitZulCache implementation, using ConcurrentHashMap.| Constructor and Description |
|---|
DefaultCockpitZulCache() |
| Modifier and Type | Method and Description |
|---|---|
org.zkoss.zk.ui.metainfo.PageDefinition |
addPageDefinitionToCache(String path,
org.zkoss.zk.ui.metainfo.PageDefinition def)
Adds a
PageDefinition to the cache. |
Set<String> |
getDefinitionPaths()
Returns all paths currently stored in the cache.
|
org.zkoss.zk.ui.metainfo.PageDefinition |
getPageDefinition(String path)
Returns the
PageDefinition for a given path. |
void |
reset()
Clears all entries in the cache.
|
public org.zkoss.zk.ui.metainfo.PageDefinition getPageDefinition(String path)
CockpitZulCachePageDefinition for a given path.getPageDefinition in interface CockpitZulCachepath - An unique identifier for the page.PageDefinition, if present in the cache, or null otherwise.public org.zkoss.zk.ui.metainfo.PageDefinition addPageDefinitionToCache(String path, org.zkoss.zk.ui.metainfo.PageDefinition def)
CockpitZulCachePageDefinition to the cache.addPageDefinitionToCache in interface CockpitZulCachepath - The path to the zul file.def - The PageDefinition to add to the cache.PageDefinition that was added (for convenience).public void reset()
CockpitZulCachereset in interface Resettablereset in interface CockpitZulCachepublic Set<String> getDefinitionPaths()
CockpitZulCachegetDefinitionPaths in interface CockpitZulCacheCopyright © 2018. All rights reserved.