Class LifeCycleAnnotationListener

java.lang.Object
dev.voidframework.core.lifecycle.LifeCycleAnnotationListener
All Implemented Interfaces:
com.google.inject.spi.TypeListener

public final class LifeCycleAnnotationListener extends Object implements com.google.inject.spi.TypeListener
Listens to the different bind classes to detect which ones have methods to call when starting or stopping the application.
  • Constructor Details

    • LifeCycleAnnotationListener

      public LifeCycleAnnotationListener(LifeCycleManager lifeCycleManager)
      Build a new instance.
      Parameters:
      lifeCycleManager - The life cycle manager to use
  • Method Details

    • hear

      public <I> void hear(com.google.inject.TypeLiteral<I> type, com.google.inject.spi.TypeEncounter<I> encounter)
      Specified by:
      hear in interface com.google.inject.spi.TypeListener