Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The DaemonApplication interface declares life cycle methods that implementations use to <b>initinit()</b>, <b>startstart()</b>, <b>stopstop()</b>, and <b>destroydestroy()</b> the service. The daemon framework will invoke <b>initinit()</b> then <b>startstart()</b>. The instance of the DaemonApplication that is instantiated on startup survives for a long time. When calling <b>stopstop()</b> and <b>destroydestroy()</b> the instantiation occurs again in a separate process while the first instantiation is still running. Meaning, the same object instance is not invoked when the service is stopped, neither is it even in the same process.