public static java.lang.ClassLoader getLoader(java.net.URL urls,
This is an easy way to add a collection of URL's on top of an existing
loader so that the existing resources of the loader will also be visible.
urls - the array (0-n) of the desired locations to include
parent - the loader to become the direct parent of the returned loader
which may be null to include only the URL's passed in.
a ClassLoader that represents the input param URL locations and the parent
public static java.lang.ClassLoader getAndCacheLoader(java.net.URL urls,
A large percentage of the callers of the getLoader method use it to support
the adding of one or more jars to the classpath of a project and for multiple
components to respond to that. Therefore, numerous identical loaders would
need to be created within the same thread notify cycle.
public static boolean activateTLCache()
activate the cache (isTLCacheActive will return true after this)
and return whether or not the caller "owns" the cache activation.
i.e. the caller is responsible for calling clearTLCachedLoaders.
public static void clearTLCache()
Forget the loaders presently in the cache.
public static boolean isTLCacheActive()
whether or not the cache is already owned higher up the stack