LifecycleUtils

Utility class to help call {@link hunt.shiro.util.Initializable#init() Initializable.init()} and {@link hunt.shiro.util.Destroyable#destroy() Destroyable.destroy()} methods cleanly on any object.

@since 0.2

Members

Static functions

destroy
void destroy(Destroyable d)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(Collection!Object c)

Calls {@link #destroy(Object) destroy} for each object in the collection. If the collection is {@code null} or empty, this method returns quietly.

destroy
void destroy(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy(Object[] c)
Undocumented in source. Be warned that the author may not have intended to support it.
init
void init(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
init
void init(Initializable initializable)
Undocumented in source. Be warned that the author may not have intended to support it.
init
void init(Collection!Object c)

Calls {@link #init(Object) init} for each object in the collection. If the collection is {@code null} or empty, this method returns quietly.

init
void init(Object[] c)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta