Add some lifecycle logging to Features

This commit is contained in:
tterrag1098 committed 2015-01-19 18:59:25 -05:00
1 parent e2586546cc
commit d4bd181ef1
2 files changed
+47 -6

No files matched your search

@@ -104,8 +104,8 @@ public class Configurations {
return config.get("features", featureName(feature), true).getBoolean(true) && refreshConfig();
}
// this makes the old camelCase names from the new CONSTANT_CASE names
private static String featureName(Features feature) {
/** Makes the old camelCase names from the new CONSTANT_CASE names */
public static String featureName(Features feature) {
String[] words = feature.name().toLowerCase(Locale.ENGLISH).split("_");
if (words.length == 1) {
return words[0];