Class LifecycleDiagnostic

All Implemented Interfaces:
GuiceyLifecycleListener

public class LifecycleDiagnostic extends UniqueGuiceyLifecycleListener
Debug guicey lifecycle listener. Could be installed with bundle shortcut: GuiceBundle.Builder.printLifecyclePhases().

Use system out instead of logger because logger in not initialized in time of first events and for more clarity.

Split logs with current phase name and startup timer. This should clarify custom logic execution times.

If multiple listeners registered, only first registered will be actually used (allow safe multiple registrations).

Since:
17.04.2018