Class SetContextClassLoaderFromClassAction
- java.lang.Object
-
- org.wildfly.security.manager.action.SetContextClassLoaderFromClassAction
-
- All Implemented Interfaces:
PrivilegedAction<ClassLoader>
public final class SetContextClassLoaderFromClassAction extends Object implements PrivilegedAction<ClassLoader>
A security action to get and set the context class loader of the current thread.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description SetContextClassLoaderFromClassAction(Class<?> clazz)
Construct a new instance.
-
-
-
Field Detail
-
clazz
private final Class<?> clazz
-
-
Constructor Detail
-
SetContextClassLoaderFromClassAction
public SetContextClassLoaderFromClassAction(Class<?> clazz)
Construct a new instance.- Parameters:
clazz
- a class from the class loader to set
-
-
Method Detail
-
run
public ClassLoader run()
- Specified by:
run
in interfacePrivilegedAction<ClassLoader>
-
-