115116117118119120121122123124125
public Cache getCache( String id, CacheHints hints ) throws CacheException { if ( creator == null ) { return new NoCacheCache(); } if ( caches.containsKey( id ) ) { return (Cache) caches.get( id );
5960616263646566
} else { log.info( "Cache with role-hint default doesn't exists, default will be no cache" ); this.defaultCache = new NoCacheCache(); } }