Class AddShutdownHookAction
- java.lang.Object
-
- org.wildfly.security.manager.action.AddShutdownHookAction
-
- All Implemented Interfaces:
PrivilegedAction<Void>
public final class AddShutdownHookAction extends Object implements PrivilegedAction<Void>
A security action which adds a shutdown hook.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description AddShutdownHookAction(Thread hook)
Construct a new instance.
-
-
-
Constructor Detail
-
AddShutdownHookAction
public AddShutdownHookAction(Thread hook)
Construct a new instance.- Parameters:
hook
- the shutdown hook to add
-
-
Method Detail
-
run
public Void run()
- Specified by:
run
in interfacePrivilegedAction<Void>
-
-