Class CacheRegistryImpl
java.lang.Object
com.evolveum.midpoint.repo.cache.registry.CacheRegistryImpl
- All Implemented Interfaces:
- CacheInvalidationListener,- CacheListener,- CacheRegistry
@Component("cacheRegistry")
public class CacheRegistryImpl
extends Object
implements CacheListener, CacheRegistry
Registry of all local caches (various caching components or services).
 
Note that this class resides in repo-cache module almost by accident and perhaps should be moved to a more appropriate place.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoid<O extends ObjectType>
 voidinvalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context) Invalidates given object(s) in all relevant caches.voidregisterCache(Cache cache) voidvoidunregisterCache(Cache cache) voidMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.repo.api.CacheListenergetEventSpecifications
- 
Constructor Details- 
CacheRegistryImplpublic CacheRegistryImpl()
 
- 
- 
Method Details- 
registerListener@PostConstruct public void registerListener()
- 
unregisterListener@PreDestroy public void unregisterListener()
- 
registerCache- Specified by:
- registerCachein interface- CacheRegistry
 
- 
unregisterCache- Specified by:
- unregisterCachein interface- CacheRegistry
 
- 
invalidatepublic <O extends ObjectType> void invalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context) Description copied from interface:CacheInvalidationListenerInvalidates given object(s) in all relevant caches.- Specified by:
- invalidatein interface- CacheInvalidationListener
- Parameters:
- type- Type of object (null means all types).
- oid- OID of object (null means all object(s) of given type(s)).
- clusterwide- Whether to distribute this event clusterwide.
- context- Context of the invalidation request (optional).
 
- 
getStateInformation- Specified by:
- getStateInformationin interface- CacheRegistry
 
- 
dumpContentpublic void dumpContent()- Specified by:
- dumpContentin interface- CacheRegistry
 
 
-