diff --git a/src/main/java/io/ebean/config/AutoConfigure.java b/src/main/java/io/ebean/config/AutoConfigure.java index 5c0ef18af..879338ce5 100644 --- a/src/main/java/io/ebean/config/AutoConfigure.java +++ b/src/main/java/io/ebean/config/AutoConfigure.java @@ -6,10 +6,13 @@ package io.ebean.config; public interface AutoConfigure { /** - * Provide some configuration the ServerConfig prior to server creation. - *
- * Return true if the autoConfiguration applies to this ServerConfig.
+ * Perform configuration for the ServerConfig prior to properties load.
*/
- void configure(ServerConfig serverConfig);
+ void preConfigure(ServerConfig serverConfig);
+
+ /**
+ * Provide some configuration the ServerConfig prior to server creation but after properties have been applied.
+ */
+ void postConfigure(ServerConfig serverConfig);
}
diff --git a/src/main/java/io/ebean/config/ServerConfig.java b/src/main/java/io/ebean/config/ServerConfig.java
index f4b59039c..28728cd22 100644
--- a/src/main/java/io/ebean/config/ServerConfig.java
+++ b/src/main/java/io/ebean/config/ServerConfig.java
@@ -2650,19 +2650,24 @@ public class ServerConfig {
* Load the settings from the given properties
*/
private void configureFromProperties() {
- autoConfiguration();
- PropertiesWrapper p = new PropertiesWrapper("ebean", name, properties, classLoadConfig);
- loadSettings(p);
+ List