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
-
-
Constructor Summary
Constructors Constructor Description SetContextClassLoaderAction(ClassLoader classLoader)
Construct a new instance.
-
-
-
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>
-
-