Class DefaultCockpitZulCache

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.zkoss.zk.ui.metainfo.PageDefinition addPageDefinitionToCache​(java.lang.String path, org.zkoss.zk.ui.metainfo.PageDefinition def)
      Adds a PageDefinition to the cache.
      java.util.Set<java.lang.String> getDefinitionPaths()
      Returns all paths currently stored in the cache.
      org.zkoss.zk.ui.metainfo.PageDefinition getPageDefinition​(java.lang.String path)
      Returns the PageDefinition for a given path.
      void reset()
      Clears all entries in the cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCockpitZulCache

        public DefaultCockpitZulCache()
    • Method Detail

      • getPageDefinition

        public org.zkoss.zk.ui.metainfo.PageDefinition getPageDefinition​(java.lang.String path)
        Description copied from interface: CockpitZulCache
        Returns the PageDefinition for a given path.
        Specified by:
        getPageDefinition in interface CockpitZulCache
        Parameters:
        path - An unique identifier for the page.
        Returns:
        A PageDefinition, if present in the cache, or null otherwise.
      • addPageDefinitionToCache

        public org.zkoss.zk.ui.metainfo.PageDefinition addPageDefinitionToCache​(java.lang.String path,
                                                                                org.zkoss.zk.ui.metainfo.PageDefinition def)
        Description copied from interface: CockpitZulCache
        Adds a PageDefinition to the cache.
        Specified by:
        addPageDefinitionToCache in interface CockpitZulCache
        Parameters:
        path - The path to the zul file.
        def - The PageDefinition to add to the cache.
        Returns:
        The PageDefinition that was added (for convenience).
      • getDefinitionPaths

        public java.util.Set<java.lang.String> getDefinitionPaths()
        Description copied from interface: CockpitZulCache
        Returns all paths currently stored in the cache.
        Specified by:
        getDefinitionPaths in interface CockpitZulCache