Class GuiceyLifecycleEvent

    • Constructor Detail

      • GuiceyLifecycleEvent

        public GuiceyLifecycleEvent​(GuiceyLifecycle type,
                                    EventsContext context)
        Create event.
        Parameters:
        type - event type
        context - event context
    • Method Detail

      • getType

        public GuiceyLifecycle getType()
        Useful to differentiate events (with switch).
        Returns:
        type of event
      • getOptions

        public Options getOptions()
        NOTE: options could only be specified in application class (in bundle definition) and so for all events options will be the same (already defined).
        Returns:
        defined options
      • getStats

        public StatsInfo getStats()
        Returns:
        tracked stats