public abstract class DestroyableBase extends LogSupport implements Destroyable
Destroyable.Util
Modifier and Type | Field and Description |
---|---|
protected org.osgl.logging.Logger |
logger |
Constructor and Description |
---|
DestroyableBase() |
Modifier and Type | Method and Description |
---|---|
void |
addSubResource(Destroyable object) |
void |
destroy() |
boolean |
isDestroyed() |
protected void |
releaseResources() |
protected void |
reload()
Recover the destroy state.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
scope() |
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isTraceEnabled, trace, trace, warn, warn
public final void destroy()
destroy
in interface Destroyable
public final boolean isDestroyed()
isDestroyed
in interface Destroyable
protected void reload()
Recover the destroy state. Use this API with cautious
protected void releaseResources()
public java.lang.Class<? extends java.lang.annotation.Annotation> scope()
scope
in interface Destroyable
public void addSubResource(Destroyable object)
Copyright © 2014–2017 ActFramework. All rights reserved.