Package org.summerboot.jexpress.boot
Class SummerBigBang
java.lang.Object
org.summerboot.jexpress.boot.SummerSingularity
org.summerboot.jexpress.boot.SummerBigBang
- Direct Known Subclasses:
SummerApplication
In Code We Trust
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Nested Class Summary
Nested classes/interfaces inherited from class org.summerboot.jexpress.boot.SummerSingularity
SummerSingularity.ConfigMetadata, SummerSingularity.ServiceMetadata -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.google.inject.Injectorprotected org.quartz.Schedulerprotected intprotected List<SummerInitializer> protected List<SummerRunner> protected final com.google.inject.ModuleFields inherited from class org.summerboot.jexpress.boot.SummerSingularity
appVersion, availableImplTagOptions, availableUniqueTagOptions, callerRootPackageNames, channelHandlerNames, cli, cliHelpFormatter, cliOptions, CURRENT_DIR, DEFAULT_CFG_DIR, gRPCBindableServiceImplClasses, gRPCServerServiceDefinitionImplClasses, hasAuthImpl, hasControllers, hasGRPCImpl, HOST, jmxRequired, jvmStartCommand, log, logFileName, memo, pluginDir, primaryClass, scanedJExpressConfigs, scanedServiceBindingMap, userSpecifiedCfgMonitorIntervalSec, userSpecifiedConfigDir, userSpecifiedImplTags, userSpecifiedResourceBundle -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSummerBigBang(Class callerClass, com.google.inject.Module userOverrideModule, String... args) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends SummerApplication>
TaParallelUniverse(String... args) protected voidbang()protected voidprotected voidbigBang_LetThereBeCLI(String[] args) protected voidTriggered by CLI CLI_USE_IMPL, then to trigger subclass to init IoC container.IoC container initialization should happened after CLI and load configuration, it will called when SummerBigBang.CLI_USE_IMPL result is readyprotected abstract Classcom.google.inject.Injectorprotected booleanisUserSpecifiedImplTags(String mockItemName) protected intinitialize based on config files in configDirprotected voidonGuiceInjectorCreated_ControllersInjected(Map<String, Object> controllers) callback by Guice Module.protected voidonGuiceInjectorCreated_DefaultHealthInspectorInjected(Map<String, Object> defaultHealthInspectors) protected booleanprotected intscanAnnotation_Scheduled(com.google.inject.Injector injector, String... rootPackageNames) protected List<SummerInitializer> protected voidscanImplementation_SummerRunner(com.google.inject.Injector injector) Methods inherited from class org.summerboot.jexpress.boot.SummerSingularity
bigBang, jExpressInit, scanAnnotation_Controller, scanAnnotation_DeclareRoles, scanAnnotation_JExpressConfigImportResource, scanAnnotation_Service, scanAnnotation_Service, scanAnnotation_Service_Add2BindingMap, scanAnnotation_Service_ValidateBindingMap, scanAnnotation_Unique, scanAnnotation_Version, scanArgsToInitializeLogging, scanImplementation_gRPC, scanPluginJars, singularity
-
Field Details
-
userOverrideModule
protected final com.google.inject.Module userOverrideModule -
guiceInjector
protected com.google.inject.Injector guiceInjector -
summerInitializers
-
summerRunners
-
scheduler
protected org.quartz.Scheduler scheduler -
schedulerTriggers
protected int schedulerTriggers
-
-
Constructor Details
-
SummerBigBang
-
-
Method Details
-
getGuiceInjector
public com.google.inject.Injector getGuiceInjector() -
bang
protected void bang() -
aParallelUniverse
-
bigBang_LetThereBeCLI
-
scanImplementation_SummerInitializer
-
runCLI_Utils
protected boolean runCLI_Utils() -
bigBang_AndThereWasCLI
protected void bigBang_AndThereWasCLI() -
getAddtionalI18n
-
loadBootConfigFiles
initialize based on config files in configDir- Parameters:
mode-- Returns:
-
isUserSpecifiedImplTags
-
genesis
Triggered by CLI CLI_USE_IMPL, then to trigger subclass to init IoC container.IoC container initialization should happened after CLI and load configuration, it will called when SummerBigBang.CLI_USE_IMPL result is ready- Parameters:
primaryClass-userSpecifiedImplTags-
-
onGuiceInjectorCreated_ControllersInjected
@Inject protected void onGuiceInjectorCreated_ControllersInjected(@Controller Map<String, Object> controllers) callback by Guice Module.triggered by
Guice.createInjector(module) --> BootGuiceModule.configure() --> BootGuiceModule.scanAnnotation_BindInstance(...)to load all classes annotated with @Controller- Parameters:
controllers-
-
onGuiceInjectorCreated_DefaultHealthInspectorInjected
@Inject protected void onGuiceInjectorCreated_DefaultHealthInspectorInjected(@Inspector Map<String, Object> defaultHealthInspectors) -
scanImplementation_SummerRunner
protected void scanImplementation_SummerRunner(com.google.inject.Injector injector) -
scanAnnotation_Scheduled
protected int scanAnnotation_Scheduled(com.google.inject.Injector injector, String... rootPackageNames)
-