public class DestroyableManager
extends java.lang.Object
implements java.lang.Runnable
Runnable to be used as shutdown hook.| Constructor and Description |
|---|
DestroyableManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Called on context shutdown to call all registered destroyable instances.
|
void |
register(Destroyable destroyable)
Register destroyable instance to be called on context shutdown.
|
void |
run() |
public void register(Destroyable destroyable)
destroyable - destroyable instanceregsters annotated methods,
registers beans anootated with {@code Destroyable}public void destroy()
public void run()
run in interface java.lang.Runnable