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