public class ConfigWrapper<T extends PluginConfig>
extends java.lang.Object
PluginConfig
object of the specific class .Constructor and Description |
---|
ConfigWrapper(java.lang.Class<T> configClass) |
Modifier and Type | Method and Description |
---|---|
T |
build() |
ConfigWrapper<T> |
fromJsonFile(java.io.File jsonFile)
Gets
ConfigWrapper by JSON file. |
ConfigWrapper<T> |
fromJsonString(java.lang.String jsonString)
Gets
ConfigWrapper by JSON string. |
ConfigWrapper<T> |
setParam(java.lang.String paramName,
java.lang.Object param)
Sets a
Plugin single parameter. |
ConfigWrapper<T> |
withParams(java.util.Map<java.lang.String,java.lang.Object> paramsMap)
Sets a
Plugin parameters Map . |
public ConfigWrapper(java.lang.Class<T> configClass)
public ConfigWrapper<T> fromJsonString(java.lang.String jsonString) throws java.io.IOException
ConfigWrapper
by JSON string.java.io.IOException
public ConfigWrapper<T> fromJsonFile(java.io.File jsonFile) throws java.io.IOException
ConfigWrapper
by JSON file.java.io.IOException
public ConfigWrapper<T> withParams(java.util.Map<java.lang.String,java.lang.Object> paramsMap)
Plugin
parameters Map
.public ConfigWrapper<T> setParam(java.lang.String paramName, java.lang.Object param)
Plugin
single parameter.