-
Notifications
You must be signed in to change notification settings - Fork 5
Caching
pm4j edited this page Jan 22, 2013
·
5 revisions
Pm4j supports caching for several UI aspects. A cache may be configured by an annotation:
@PmCacheCfg(value=CacheMode.ON) public final PmAttrInteger myAttr = new PmAttrIntgerImpl() { protected getValueImpl() { // … some expansive code. E.g. a service call …
You may define caches for multiple UI aspects:
@PmCacheCfg(title=CacheMode.ON, options=CacheMode.ON)
Caching is supported for the following UI aspects:
- visibility,
- enablement,
- title,
- value and
- options You may cache all these UI aspects as follows:
@PmCacheCfg(all=CacheMode.ON)
...