public abstract class LifecycleUtils extends Object
Initializable.init() and
Destroyable.destroy() methods cleanly on any object.
| Constructor and Description |
|---|
LifecycleUtils()
|
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy(Collection
Calls
destroy for each object in the collection.
|
static void |
destroy(Destroyable
|
static void |
destroy(Object
|
static void |
init(Collection
Calls
init for each object in the collection.
|
static void |
init(Initializable
|
static void |
init(Object
|
public static void init(Objecto) throws ShiroException
ShiroException
public static void init(Initializableinitializable) throws ShiroException
ShiroException
public static void init(Collectionc) throws ShiroException
init for each object in the collection. If the collection is
null or empty, this method returns quietly.
c - the collection containing objects to
init.
ShiroException - if unable to initialize one or more instances.
public static void destroy(Objecto)
public static void destroy(Destroyabled)
public static void destroy(Collectionc)
destroy for each object in the collection. If the collection is
null or empty, this method returns quietly.
c - the collection of objects to destroy.