Package pro.gravit.launcher.config
Class JsonConfigurable<T>
- java.lang.Object
-
- pro.gravit.launcher.config.JsonConfigurable<T>
-
- All Implemented Interfaces:
JsonConfigurableInterface<T>
- Direct Known Subclasses:
SimpleConfigurable
public abstract class JsonConfigurable<T> extends java.lang.Object implements JsonConfigurableInterface<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.file.PathconfigPath
-
Constructor Summary
Constructors Constructor Description JsonConfigurable(java.lang.reflect.Type type, java.nio.file.Path configPath)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract TgetConfig()abstract TgetDefaultConfig()java.nio.file.PathgetPath()java.lang.reflect.TypegetType()abstract voidsetConfig(T config)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface pro.gravit.launcher.config.JsonConfigurableInterface
generateConfigIfNotExists, generateConfigIfNotExists, loadConfig, loadConfig, loadConfig, resetConfig, resetConfig, saveConfig, saveConfig, saveConfig, toJsonString, toJsonString
-
-
-
-
Method Detail
-
getPath
public java.nio.file.Path getPath()
- Specified by:
getPathin interfaceJsonConfigurableInterface<T>
-
getType
public java.lang.reflect.Type getType()
- Specified by:
getTypein interfaceJsonConfigurableInterface<T>
-
getConfig
public abstract T getConfig()
- Specified by:
getConfigin interfaceJsonConfigurableInterface<T>
-
setConfig
public abstract void setConfig(T config)
- Specified by:
setConfigin interfaceJsonConfigurableInterface<T>
-
getDefaultConfig
public abstract T getDefaultConfig()
- Specified by:
getDefaultConfigin interfaceJsonConfigurableInterface<T>
-
-