public interface LifecycleEnvironment
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationLifecycleListener(ApplicationLifecycleListener listener)
Adds the given
ApplicationLifecycleListener instance to the set
of objects listening to the Application's lifecycle events. |
void |
register(Managed managed)
Adds the given
Managed instance to the set of objects managed by
the Application's lifecycle. |
void register(Managed managed)
Managed instance to the set of objects managed by
the Application's lifecycle. When the Application starts, managed
will be started. When the Application stops, managed will be
stopped.managed - a managed objectvoid addApplicationLifecycleListener(ApplicationLifecycleListener listener)
ApplicationLifecycleListener instance to the set
of objects listening to the Application's lifecycle events. These
listeners will be notified whenever the Application is started and
stopped.listener - a listener object
Copyright (C) 2014-2016, Center for Open Middleware