cdmlibModelCache = new Cache(modelcc);
CacheManager.create().addCache(cdmlibModelCache);
-
- initCache(cdmlibModelCache);
+ initCdmModelCache(cdmlibModelCache);
} catch (CacheException e) {
throw new CdmClientCacheException(e);
}
- private void initCache(final Cache cache) {
+ private void initCdmModelCache(final Cache cache) {
initThread = new Thread() {
@Override
}
public Cache getCdmModelGetMethodsCache(){
+ //Note : Even though we synchronize this method, the cache can be simply
+ // retrieved using CacheManager.create().getCache(CDM_MODEL_CACHE_NAME)
+ // in which case the cache may not be fully initialised
synchronized (cdmlibModelCache) {
while(!cacheInitialised) {
try {