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 Details

    • BIND_TO

      protected static final String BIND_TO
      See Also:
    • INFO

      protected static final String INFO
    • caller

      protected final Object caller
    • callerClass

      protected final Class callerClass
    • callerRootPackageName

      protected final String callerRootPackageName
    • userSpecifiedImplTags

      protected final Set<String> userSpecifiedImplTags
    • memo

      protected final StringBuilder memo
  • Constructor Details

  • Method Details

    • isTagSpecifiedViaCLI

      protected boolean isTagSpecifiedViaCLI(String implTag)
    • configure

      public void configure()
      Overrides:
      configure in class com.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 by
       Guice.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