blob: 3e77dd672565b6402b37794c267a1c623057a863 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
package cbt
import java.net._
import java.util.concurrent.ConcurrentHashMap
class ClassLoaderCache(logger: Logger){
val persistent = new KeyLockedLazyCache(
NailgunLauncher.classLoaderCache.asInstanceOf[ConcurrentHashMap[String,AnyRef]],
NailgunLauncher.classLoaderCache.asInstanceOf[ConcurrentHashMap[AnyRef,ClassLoader]],
Some(logger)
)
val transient = new KeyLockedLazyCache(
new ConcurrentHashMap[String,AnyRef],
new ConcurrentHashMap[AnyRef,ClassLoader],
Some(logger)
)
}
|