Class BootConfig
java.lang.Object
org.summerboot.jexpress.boot.config.BootConfig
- All Implemented Interfaces:
JExpressConfig
- Direct Known Subclasses:
AuthConfig,GRPCClientConfig,GRPCServerConfig,HttpConfig,NioConfig,SMTPConfig
- Author:
- Changski Tie Zheng Zhang 张铁铮, 魏泽北, 杜旺财, 杜富贵
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringinfo()voidLoad config settings with @Config, supported Java types:protected abstract voidloadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) protected voidloadField(Field field, String configFolder, ConfigUtil helper, Properties props, boolean autoDecrypt) name()temp()voidupdateConfigFile(Map<String, String> updatedCfgs) protected StringupdateFilePath(File domainDir, String fileName) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.summerboot.jexpress.boot.config.JExpressConfig
shutdown
-
Field Details
-
log
protected volatile org.apache.logging.log4j.Logger log -
cfgFile
-
configName
-
-
Constructor Details
-
BootConfig
public BootConfig()
-
-
Method Details
-
name
- Specified by:
namein interfaceJExpressConfig
-
getCfgFile
- Specified by:
getCfgFilein interfaceJExpressConfig
-
temp
- Specified by:
tempin interfaceJExpressConfig- Returns:
- null - disable reload
-
info
- Specified by:
infoin interfaceJExpressConfig
-
load
Load config settings with @Config, supported Java types:1. T, K: enum, String, boolean/Boolean, byte/Byte, char/short/Short, int/Integer, long/Long, float/Float, double/Double, BigDecimal, URI, URL, Path, File 2. <T>[] array 3. Immutable Set<T> 4. Immutable List<T> 5. Immutable Map<T, K> 6. KeyManagerFactory 7. TrustManagerFactory- Specified by:
loadin interfaceJExpressConfig- Parameters:
cfgFile-isReal-- Throws:
FileNotFoundExceptionIOException
-
loadCustomizedConfigs
protected abstract void loadCustomizedConfigs(File cfgFile, boolean isReal, ConfigUtil helper, Properties props) throws Exception - Throws:
Exception
-
loadField
protected void loadField(Field field, String configFolder, ConfigUtil helper, Properties props, boolean autoDecrypt) throws IllegalAccessException - Throws:
IllegalAccessException
-
updateFilePath
-
updateConfigFile
- Throws:
IOException
-
generateTemplate
-