public interface Destroyable
| Modifier and Type | Method and Description |
|---|---|
void |
preDestroy()
Called on context shutdown (by default on jvm shutdown), but may be called manually through destroy manager
ru.vyarus.guice.ext.managed.destroyable.DestroyableManager#destroy(). |
void preDestroy()
throws java.lang.Exception
ru.vyarus.guice.ext.managed.destroyable.DestroyableManager#destroy().
Will be called one time no matter how many time destroy will be asked by manager.
It is safe to avoid explicit exception handling (except special cases required by logic).java.lang.Exception - on any unrecoverable error