Package com.evolveum.midpoint.repo.cache
Class CacheRegistry
- java.lang.Object
-
- com.evolveum.midpoint.repo.cache.CacheRegistry
-
- All Implemented Interfaces:
CacheListener
@Component public class CacheRegistry extends Object implements CacheListener
-
-
Constructor Summary
Constructors Constructor Description CacheRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Cacheable>
getCacheableServices()
CachesStateInformationType
getStateInformation()
<O extends ObjectType>
voidinvalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)
Invalidates given object(s) in all relevant caches.void
registerCacheableService(Cacheable cacheableService)
void
registerListener()
void
unregisterCacheableService(Cacheable cacheableService)
void
unregisterListener()
-
-
-
Method Detail
-
registerListener
@PostConstruct public void registerListener()
-
unregisterListener
@PreDestroy public void unregisterListener()
-
registerCacheableService
public void registerCacheableService(Cacheable cacheableService)
-
unregisterCacheableService
public void unregisterCacheableService(Cacheable cacheableService)
-
invalidate
public <O extends ObjectType> void invalidate(Class<O> type, String oid, boolean clusterwide, CacheInvalidationContext context)
Description copied from interface:CacheListener
Invalidates given object(s) in all relevant caches.- Specified by:
invalidate
in interfaceCacheListener
- 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
public CachesStateInformationType getStateInformation()
-
-