Skip to content

Commit

Permalink
Renamed 2 configs
Browse files Browse the repository at this point in the history
  • Loading branch information
WillFP committed Jul 21, 2021
1 parent 850bf5d commit 8cda5be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
/**
* 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>
* Does not automatically update.
*
* @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));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
* <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))));
}
}

0 comments on commit 8cda5be

Please sign in to comment.