Package jetbrains.mps.cache
Class CachesManager
- java.lang.Object
 - 
- jetbrains.mps.cache.CachesManager
 
 
- 
- All Implemented Interfaces:
 CoreComponent
public class CachesManager extends Object implements CoreComponent
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCachesManager.CacheCreator<T> 
- 
Constructor Summary
Constructors Constructor Description CachesManager(ClassLoaderManager classLoaderManager, SRepository repo)Deprecated.Use of this cache is discouraged. 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()<T> AbstractCachegetCache(Object key, T element, CachesManager.CacheCreator<T> creator)static CachesManagergetInstance()voidinit()voidremoveCache(Object key) 
 - 
 
- 
- 
Constructor Detail
- 
CachesManager
@Deprecated public CachesManager(ClassLoaderManager classLoaderManager, SRepository repo)
Deprecated.Use of this cache is discouraged. There's only 1 use in MPS and it doesn't justify existence of this class, imo. We shall switch ModelEventRouter to use openapi events if the class persists. 
 - 
 
- 
Method Detail
- 
getInstance
public static CachesManager getInstance()
 
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
- 
getCache
public <T> AbstractCache getCache(Object key, T element, CachesManager.CacheCreator<T> creator)
 
- 
removeCache
public void removeCache(Object key)
 
 - 
 
 -