Renamed 2 configs
This commit is contained in:
@@ -9,7 +9,7 @@ import java.util.Map;
|
||||
/**
|
||||
* Raw JSON config with a map of values at its core.
|
||||
*/
|
||||
public class JSONConfig extends JSONConfigWrapper {
|
||||
public class JSONTransientConfig extends JSONConfigWrapper {
|
||||
/**
|
||||
* Config implementation for passing maps.
|
||||
* <p>
|
||||
@@ -17,7 +17,7 @@ public class JSONConfig extends JSONConfigWrapper {
|
||||
*
|
||||
* @param values The map of values.
|
||||
*/
|
||||
public JSONConfig(@NotNull final Map<String, Object> values) {
|
||||
public JSONTransientConfig(@NotNull final Map<String, Object> values) {
|
||||
super(Eco.getHandler().getConfigFactory().createJSONConfig(values));
|
||||
}
|
||||
}
|
||||
@@ -12,18 +12,18 @@ import java.io.StringReader;
|
||||
* <p>
|
||||
* Does not automatically update.
|
||||
*/
|
||||
public class YamlConfig extends YamlConfigWrapper {
|
||||
public class YamlTransientConfig extends YamlConfigWrapper {
|
||||
/**
|
||||
* @param config The YamlConfiguration handle.
|
||||
*/
|
||||
public YamlConfig(@NotNull final YamlConfiguration config) {
|
||||
public YamlTransientConfig(@NotNull final YamlConfiguration config) {
|
||||
super(Eco.getHandler().getConfigFactory().createYamlConfig(config));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param contents The contents of the config.
|
||||
*/
|
||||
public YamlConfig(@NotNull final String contents) {
|
||||
public YamlTransientConfig(@NotNull final String contents) {
|
||||
super(Eco.getHandler().getConfigFactory().createYamlConfig(YamlConfiguration.loadConfiguration(new StringReader(contents))));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user