@Component(value="cuba_DynamicAttributesCacheStrategy") public class DynamicAttributesCacheStrategy extends java.lang.Object implements CachingStrategy
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
DynamicAttributesCacheStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObject()
Return cached object
|
void |
init()
Method for strategy initialization
Invoked at first login, so security context is available
|
java.lang.Object |
loadObject()
Refresh cached object
|
java.util.concurrent.locks.ReadWriteLock |
lock()
Return lock used to provide caching thread safety
|
boolean |
needToReload()
Indicate whether cached object should be refreshed or not
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearCachepublic static final java.lang.String NAME
public void init()
CachingStrategyinit in interface CachingStrategypublic java.lang.Object getObject()
CachingStrategygetObject in interface CachingStrategypublic java.lang.Object loadObject()
CachingStrategyloadObject in interface CachingStrategypublic boolean needToReload()
CachingStrategyneedToReload in interface CachingStrategypublic java.util.concurrent.locks.ReadWriteLock lock()
CachingStrategylock in interface CachingStrategy