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
public class ClassLoaderCache<E> extends Object
Provide a Class Loader Cache to enable caching singleton variables in the current threads class loader.
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear the classloader map cache.E
get()
Return the cached variable for the current thread classloader.void
put(E e)
Set the cached variable on the current thread classloader.
-
-
-
Method Detail
-
get
public E get()
Return the cached variable for the current thread classloader.- Returns:
- the cached variable for the current thread classloader.
-
put
public void put(E e)
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.
-
-