public final class ClassLoaders extends Object
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
findMostCompleteClassLoader()
Find the most complete class loader by trying the current thread context class loader, then
the class loader
that loaded Shed, then the system class loader.
|
static ClassLoader |
findMostCompleteClassLoader(Class<?> target)
Find the most complete class loader by trying the current thread context class loader, then
the classloader of the
given class if any, then the class loader that loaded SEED core, then the system class loader.
|
public static ClassLoader findMostCompleteClassLoader(Class<?> target)
target
- the class to get the class loader from if no current thread context class
loader is present. May be null.public static ClassLoader findMostCompleteClassLoader()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.