Class ContextClassloaderLocal<V>


  • abstract class ContextClassloaderLocal<V>
    extends java.lang.Object
    Simple utility ensuring that the value is cached only in case it is non-internal implementation
    • Field Detail

      • FAILED_TO_CREATE_NEW_INSTANCE

        private static final java.lang.String FAILED_TO_CREATE_NEW_INSTANCE
        See Also:
        Constant Field Values
      • CACHE

        private java.util.WeakHashMap<java.lang.ClassLoader,​V> CACHE
    • Constructor Detail

      • ContextClassloaderLocal

        ContextClassloaderLocal()
    • Method Detail

      • get

        public V get()
              throws java.lang.Error
        Throws:
        java.lang.Error
      • set

        public void set​(V instance)
      • initialValue

        protected abstract V initialValue()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createNewInstance

        private V createNewInstance()
      • format

        private static java.lang.String format​(java.lang.String property,
                                               java.lang.Object... args)
      • getContextClassLoader

        private static java.lang.ClassLoader getContextClassLoader()