Package org.summerboot.jexpress.boot
Class BootGuiceModule
java.lang.Object
com.google.inject.AbstractModule
org.summerboot.jexpress.boot.BootGuiceModule
- All Implemented Interfaces:
com.google.inject.Module
public class BootGuiceModule
extends com.google.inject.AbstractModule
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidscanAnnotation_BindInstance(com.google.inject.Binder binder, Class<? extends Annotation> annotation, String... rootPackageNames) This method should be called within Google.Guice module, and will automatically trigger Google.Guice to call initControllerActions(...)Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
BootGuiceModule
-
-
Method Details
-
configure
public void configure()- Overrides:
configurein classcom.google.inject.AbstractModule
-
scanAnnotation_BindInstance
protected void scanAnnotation_BindInstance(com.google.inject.Binder binder, Class<? extends Annotation> annotation, String... rootPackageNames) This method should be called within Google.Guice module, and will automatically trigger Google.Guice to call initControllerActions(...)- Parameters:
binder-rootPackageNames-annotation- the class level annotation to mark this class as a HTTP request controller
-