diff --git a/pom.xml b/pom.xml index 01a59bb..ed757d0 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.github.g3force configurable - v2.1 + v2.2 configurable diff --git a/src/main/java/com/github/g3force/configurable/ConfigRegistration.java b/src/main/java/com/github/g3force/configurable/ConfigRegistration.java index f0cfb93..c81b9c9 100644 --- a/src/main/java/com/github/g3force/configurable/ConfigRegistration.java +++ b/src/main/java/com/github/g3force/configurable/ConfigRegistration.java @@ -54,6 +54,19 @@ private ConfigRegistration() } + /** + * Update the default config path (default: config/) + *
+ * Note: This must be called before config clients are added + * + * @param path a new default path + */ + public static void setDefPath(String path) + { + defPath = path; + } + + /** * @param observer */