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.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionControllerAnnotationListener(String contextPath, Router router) Build a new instance. -
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:
contextPath- The context pathrouter- The current router- Since:
- 1.4.0
-
-
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
-