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 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBootGuiceModule(Object caller, Class callerClass, Set<String> userSpecifiedImplTags, StringBuilder memo) -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected booleanisTagSpecifiedViaCLI(String implTag) protected voidscanAnnotation_BindInstance(com.google.inject.Binder binder, Class<? extends Annotation> annotation, String... rootPackageNames) This method will be called byMethods 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, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
BIND_TO
- See Also:
-
INFO
-
caller
-
callerClass
-
callerRootPackageName
-
userSpecifiedImplTags
-
memo
-
-
Constructor Details
-
BootGuiceModule
public BootGuiceModule(Object caller, Class callerClass, Set<String> userSpecifiedImplTags, StringBuilder memo)
-
-
Method Details
-
isTagSpecifiedViaCLI
-
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 will be called byGuice.createInjector(...) from SummerBigBang.genesis(...) it will trigger SummerBigBang.onGuiceInjectorCreated_ControllersInjected(@Controller
Map<String, Object>controllers)- Parameters:
binder-rootPackageNames-annotation- the class level annotation to mark this class as a HTTP request controller
-