public class ContextClassLoader extends Object
When a security manager is installed, the constructor checks for the runtime permissions "getClassLoader"
Modifier and Type | Field and Description |
---|---|
static RuntimePermission |
GETCLASSLOADER
Retrieve a classloader permission
|
static org.jboss.util.loading.ContextClassLoader.NewInstance |
INSTANTIATOR
Instantiate a new context class loader
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getContextClassLoader()
Retrieve the context classloader
|
ClassLoader |
getContextClassLoader(Thread thread)
Retrieve the context classloader for the given thread
|
public static final RuntimePermission GETCLASSLOADER
public static final org.jboss.util.loading.ContextClassLoader.NewInstance INSTANTIATOR
public ClassLoader getContextClassLoader()
public ClassLoader getContextClassLoader(Thread thread)
thread
- the threadCopyright © 2018 JBoss by Red Hat. All rights reserved.