Package org.summerboot.jexpress.boot
Class SummerApplication
java.lang.Object
org.summerboot.jexpress.boot.SummerSingularity
org.summerboot.jexpress.boot.SummerBigBang
org.summerboot.jexpress.boot.SummerApplication
- All Implemented Interfaces:
BootConstant
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 ConfigChangeListenerprotected List<GRPCServer>protected HealthInspectorprotected NioServerprotected InstrumentationMgrprotected PostOfficestatic booleanFields inherited from class org.summerboot.jexpress.boot.SummerBigBang
cli, CLI_ADMIN_PWD, CLI_ADMIN_PWD_FILE, CLI_CONFIG_DEMO, CLI_CONFIG_MONITOR_INTERVAL, CLI_DECRYPT, CLI_ENCRYPT, CLI_I8N, CLI_JWT, CLI_LIST_UNIQUE, CLI_USE_IMPL, CLI_VERSION, cliHelpFormatter, cliOptions, guiceInjector, summerInitializers, summerRunners, USAGE, userSpecifiedImplTags, userSpecifiedResourceBundleFields inherited from class org.summerboot.jexpress.boot.SummerSingularity
appVersion, availableImplTagOptions, availableUniqueTagOptions, callerRootPackageName, channelHandlerNames, CLI_CONFIG_DIR, CLI_CONFIG_DOMAIN, CURRENT_DIR, DEFAULT_CFG_DIR, DEFAULT_CFG_DIR_NAME, gRPCBindableServiceImplClasses, gRPCServerServiceDefinitionImplClasses, hasAuthImpl, hasControllers, hasGRPCImpl, jmxRequired, jvmStartCommand, log, logFileName, memo, pluginDir, primaryClass, scanedJExpressConfigs, scanedServiceBindingMap, userSpecifiedConfigDirFields inherited from interface org.summerboot.jexpress.boot.BootConstant
CFG_AUTH, CFG_GRPC, CFG_NIO, CFG_SMTP, DIR_PLUGIN, HOST, LOG4J2_JDKADAPTER_KEY, LOG4J2_JDKADAPTER_VALUE, LOG4J2_KEY, PID, SYS_PROP_APP_PACKAGE_NAME, SYS_PROP_APP_VERSION, SYS_PROP_APP_VERSION_SHORT, SYS_PROP_HOST_NAME, SYS_PROP_LOGFILENAME, SYS_PROP_LOGGINGPATH, SYS_PROP_PING_URI, VERSION -
Method Summary
Modifier and TypeMethodDescriptionprotected Classstatic <T extends SummerApplication>
Trun()Might not work on Non HotSpot VM implementations.static <T extends SummerApplication>
Trun(com.google.inject.Module userOverrideModule) Might not work on Non Hotspot VM implementations.static <T extends SummerApplication>
Tstatic <T extends SummerApplication>
Tstatic <T extends SummerApplication>
Tstatic voidstatic <T extends SummerApplication>
Tvoidshutdown()voidstart()run application with ping enabled, URI as webApiContextRoot + loadBalancerHealthCheckPathprotected voidstatic <T extends SummerApplication>
Tstatic <T extends SummerApplication>
TMethods inherited from class org.summerboot.jexpress.boot.SummerBigBang
bigBang_AndThereWasCLI, bigBang_LetThereBeCLI, genesis, getGuiceInjector, isUserSpecifiedImplTags, loadBootConfigFiles, onGuiceInjectorCreated_ControllersInjected, runCLI_Utils, scanImplementation_SummerInitializer, scanImplementation_SummerRunnerMethods inherited from class org.summerboot.jexpress.boot.SummerSingularity
scanAnnotation_Controller, scanAnnotation_DeclareRoles, scanAnnotation_JExpressConfigImportResource, scanAnnotation_Service, scanAnnotation_Service, scanAnnotation_Service_Add2BindingMap, scanAnnotation_Service_ValidateBindingMap, scanAnnotation_Unique, scanAnnotation_Version, scanArgsToInitializePluginFromConfigDir, scanImplementation_gRPC, scanPluginJars
-
Field Details
-
SystemErrorCodeAsInt
public static boolean SystemErrorCodeAsInt -
configChangeListener
-
instrumentationMgr
-
healthInspector
-
httpServer
-
gRPCServerList
-
postOffice
-
-
Method Details
-
run
Might not work on Non HotSpot VM implementations.- Type Parameters:
T-- Returns:
-
run
- Parameters:
callerClass-args-
-
run
Might not work on Non Hotspot VM implementations.- Type Parameters:
T-- Parameters:
userOverrideModule-- Returns:
-
run
- Type Parameters:
T-- Parameters:
args-- Returns:
-
run
public static <T extends SummerApplication> T run(com.google.inject.Module userOverrideModule, String[] args) - Type Parameters:
T-- Parameters:
args-userOverrideModule-- Returns:
-
run
public static <T extends SummerApplication> T run(Class callerClass, com.google.inject.Module userOverrideModule, String argsStr) - Type Parameters:
T-- Parameters:
callerClass-userOverrideModule-argsStr-- Returns:
-
run
public static <T extends SummerApplication> T run(Class callerClass, com.google.inject.Module userOverrideModule, String[] args) - Type Parameters:
T-- Parameters:
callerClass-userOverrideModule-args-- Returns:
-
unittest
public static <T extends SummerApplication> T unittest(Class callerClass, com.google.inject.Module userOverrideModule, String argsStr) - Type Parameters:
T-- Parameters:
callerClass-userOverrideModule-argsStr-- Returns:
-
unittest
public static <T extends SummerApplication> T unittest(Class callerClass, com.google.inject.Module userOverrideModule, String... args) - Type Parameters:
T-- Parameters:
callerClass-userOverrideModule-args-- Returns:
-
getgRPCServers
-
getAddtionalI18n
- Specified by:
getAddtionalI18nin classSummerBigBang
-
traceConfig
protected void traceConfig() -
start
public void start()run application with ping enabled, URI as webApiContextRoot + loadBalancerHealthCheckPath -
shutdown
public void shutdown()
-