Public Member Functions | |
| CacheablePropertySupport (Object instance, Class valueType, Method getter, Method setter, CachingStrategy cachingStrategy) | |
| Object | getValue () throws IllegalAccessException, IllegalArgumentException, InvocationTargetException |
| void | setValue (Object newValue) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException |
| PropertyEditor | getPropertyEditor () |
| void | resetCache () |
<font size="-1" color="#FF0000">**For internal use only** </font> A version of PropertySupport that caches the property value to avoid that the underlying Bean has to handle bursts of getValue() calls. The caching strategy is given at construction time.
| cern.gp.nodes.impl.CacheablePropertySupport.CacheablePropertySupport | ( | Object | instance, | |
| Class | valueType, | |||
| Method | getter, | |||
| Method | setter, | |||
| CachingStrategy | cachingStrategy | |||
| ) |
| PropertyEditor cern.gp.nodes.impl.CacheablePropertySupport.getPropertyEditor | ( | ) |
Returns an instance of property editor for this property. The implementation reconizes a special type of PropertyEditor that implements cern.gp.beans.BeanDependentPropertyEditor and invoke their initialization method.
null if there should not be any editor. | Object cern.gp.nodes.impl.CacheablePropertySupport.getValue | ( | ) | throws IllegalAccessException, IllegalArgumentException, InvocationTargetException |
overrides getValue, and accesses the Bean only if the cache has expired
References cern.gp.nodes.cache.CachingStrategy.isCacheValid(), and cern.gp.nodes.cache.CachingStrategy.validateCache().
| void cern.gp.nodes.impl.CacheablePropertySupport.resetCache | ( | ) |
reset the cache for this property
Implements cern.gp.nodes.cache.Cacheable.
References cern.gp.nodes.cache.CachingStrategy.invalidateCache().
| void cern.gp.nodes.impl.CacheablePropertySupport.setValue | ( | Object | newValue | ) | throws IllegalAccessException, IllegalArgumentException, InvocationTargetException |
overrides setValue, and caches the value
References cern.gp.nodes.cache.CachingStrategy.validateCache().
1.7.0