Package com.avoka.core.util
Class ClassLoaderCache<E>
java.lang.Object
com.avoka.core.util.ClassLoaderCache<E>
- Type Parameters:
E
- the class to cache against the current threads class loader
Provide a Class Loader Cache to enable caching singleton variables in the current threads class loader.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
ClassLoaderCache
public ClassLoaderCache()
-
-
Method Details
-
get
Return the cached variable for the current thread classloader.- Returns:
- the cached variable for the current thread classloader.
-
put
Set the cached variable on the current thread classloader.- Parameters:
e
- the cached variable for the current thread classloader.
-
clear
public void clear()Clear the classloader map cache.
-