Top Description Fields Constructors Methods
com.sun.xml.xsom.util

pack-priv abstract Class ContextClassloaderLocal<V>

extends Object
Class Inheritance
Imports
java.security.AccessController, .PrivilegedAction, java.text.MessageFormat, java.util.ResourceBundle, .WeakHashMap

Simple utility ensuring that the value is cached only in case it is non-internal implementation

Field Summary

Modifier and TypeField and Description
private WeakHashMap<ClassLoader, V>
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private V
private static String
format(String property, Object... args)

public V
get()

private static ClassLoader
protected abstract V
public void
set(V instance)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CACHEback to summary
private WeakHashMap<ClassLoader, V> CACHE
FAILED_TO_CREATE_NEW_INSTANCEback to summary
private static final String FAILED_TO_CREATE_NEW_INSTANCE

Constructor Detail

ContextClassloaderLocalback to summary
pack-priv ContextClassloaderLocal()

Method Detail

createNewInstanceback to summary
private V createNewInstance()
formatback to summary
private static String format(String property, Object... args)
getback to summary
public V get() throws Error
getContextClassLoaderback to summary
private static ClassLoader getContextClassLoader()
initialValueback to summary
protected abstract V initialValue() throws Exception
setback to summary
public void set(V instance)