The cache-provider-class Element"
From Documentation
m (Created page with '{{ZKConfigurationReferencePageHeader}} =Version History= {{LastUpdated}} {| border='1px' | width="100%" ! Version !! Date !! Content |- | | | |} {{ZKConfig…') |
m |
||
Line 1: | Line 1: | ||
{{ZKConfigurationReferencePageHeader}} | {{ZKConfigurationReferencePageHeader}} | ||
+ | |||
+ | '''Syntax:''' | ||
+ | <cache-provider-class>''a_class_name''</cache-provider-class> | ||
+ | |||
+ | [Default: <javadoc>org.zkoss.zk.ui.impl.SessionDesktopCacheProvider</javadoc>] | ||
+ | |||
+ | It specifies which class used to implement the desktop cache. The class must have a default constructor (without any argument), and implement the <javadoc type="interface">org.zkoss.zk.ui.sys.DesktopCacheProvider</javadoc> interface. | ||
+ | |||
+ | One instance of the cache provider is created and shared for each Web application, so you have to synchronize the access properly. | ||
+ | |||
+ | Available implementations are as follows. | ||
+ | |||
+ | |||
+ | {| border="1" | ||
+ | ! <center>Class</center> | ||
+ | ! <center>Description</center> | ||
+ | |||
+ | |- | ||
+ | | <javadoc>org.zkoss.zk.ui.impl.SessionDesktopCacheProvider</javadoc> | ||
+ | | It stores all desktops from the same session in one single cache. It is simple and fast, but not supporting clustering. | ||
+ | |||
+ | |- | ||
+ | | <javadoc>org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider</javadoc> | ||
+ | | It stores all desktops from the same Web application in one single cache. In other words, it doesn't count on session at all. | ||
+ | |||
+ | It is useful because some Web server, e.g, [http://www.bea.com/ BEA WebLogic], might be configured to use independent sessions for each request. | ||
+ | |||
+ | |} | ||
=Version History= | =Version History= |
Revision as of 15:17, 4 December 2010
Syntax:
<cache-provider-class>a_class_name</cache-provider-class>
[Default: SessionDesktopCacheProvider]
It specifies which class used to implement the desktop cache. The class must have a default constructor (without any argument), and implement the DesktopCacheProvider interface.
One instance of the cache provider is created and shared for each Web application, so you have to synchronize the access properly.
Available implementations are as follows.
SessionDesktopCacheProvider | It stores all desktops from the same session in one single cache. It is simple and fast, but not supporting clustering. |
GlobalDesktopCacheProvider | It stores all desktops from the same Web application in one single cache. In other words, it doesn't count on session at all.
It is useful because some Web server, e.g, BEA WebLogic, might be configured to use independent sessions for each request. |
Version History
Version | Date | Content |
---|---|---|