Class 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 Detail

      • ClassLoaderCache

        public ClassLoaderCache()
    • 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.