Package dev.voidframework.web.module
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<I> voidhear(com.google.inject.TypeLiteral<I> type, com.google.inject.spi.TypeEncounter<I> encounter)
-
Constructor Details
-
ControllerAnnotationListener
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:
hearin interfacecom.google.inject.spi.TypeListener
-