Class ControllerAnnotationListener

java.lang.Object
dev.voidframework.web.module.ControllerAnnotationListener
All Implemented Interfaces:
com.google.inject.spi.TypeListener

public class ControllerAnnotationListener extends Object implements com.google.inject.spi.TypeListener
Listen to the different bind classes to detect which ones are web controllers.
  • Constructor Details

    • ControllerAnnotationListener

      public ControllerAnnotationListener(Router router)
      Build a new instance.
      Parameters:
      router - The current router
  • 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