diff --git a/src/main/java/io/ebean/config/ServerConfig.java b/src/main/java/io/ebean/config/ServerConfig.java index 222129a65..bfb0b3999 100644 --- a/src/main/java/io/ebean/config/ServerConfig.java +++ b/src/main/java/io/ebean/config/ServerConfig.java @@ -57,22 +57,24 @@ import java.util.ServiceLoader; *
{@code
*
* ServerConfig c = new ServerConfig();
- * c.setName("db");
*
* // read the ebean.properties and load
* // those settings into this serverConfig object
* c.loadFromProperties();
*
- * // add any classes found in the app.data package
- * c.addPackage("com.myapp.domain");
- *
- * // register as the 'Default' server
- * c.setDefaultServer(true);
+ * // explicitly register the entity beans to avoid classpath scanning
+ * c.addClass(Customer.class);
+ * c.addClass(User.class);
*
* EbeanServer server = EbeanServerFactory.create(c);
*
* }
*
+ * + * Note that ServerConfigProvider provides a standard Java ServiceLoader mechanism that can + * be used to apply configuration to the ServerConfig. + *
+ * * @author emcgreal * @author rbygrave * @see EbeanServerFactory