/** * Return a PropertiesWrapper instance with a different prefix but same underlying properties. * <p/> * Used when wanting to use "datasource" as the prefix rather than "ebean". * <p/> * The returning instance should only be used in a read only fashion. */ public PropertiesWrapper withPrefix(String prefix) { return new PropertiesWrapper(prefix, serverName, propertyMap, properties); }
/** * Load the settings from the given properties */ public void loadFromProperties(Properties properties) { // keep the properties used for configuration so that these are available for plugins this.properties = properties; PropertiesWrapper p = new PropertiesWrapper("ebean", name, properties); loadSettings(p); }
/** * Load settings from test-ebean.properties and do nothing if the properties is not found. * <p> * This is typically used when test-ebean.properties is put into the test class path and used * to configure Ebean for running tests. * </p> */ public void loadTestProperties() { Properties properties = PropertyMap.testProperties(); if (!properties.isEmpty()) { PropertiesWrapper p = new PropertiesWrapper("ebean", name, properties); loadSettings(p); } }