Class SystemObjectCache

java.lang.Object
com.evolveum.midpoint.repo.common.SystemObjectCache
All Implemented Interfaces:
Cache, CacheInvalidationListener

@Component public class SystemObjectCache extends Object implements Cache
Cache for system object such as SystemConfigurationType. This is a global cache, independent of the request. It will store the system configuration in memory. It will check for system configuration updates in regular interval using the getVersion() method.

This supplements the RepositoryCache. RepositoryCache works on per-request (per-operation) basis. The SystemObjectCache is global. Its goal is to reduce the number of getObject(SystemConfiguration) and the getVersion(SystemConfiguration) calls.

In the future: May be used for more objects that are often used and seldom changed, e.g. object templates.

TODO: use real repo instead of repo cache

Author:
semancik