Class PropertiesWrapper
java.lang.Object
io.ebean.config.PropertiesWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Propertiesprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionPropertiesWrapper(String prefix, String serverName, Properties properties, ClassLoadConfig classLoadConfig) Construct with a prefix, serverName and properties.PropertiesWrapper(Properties properties, ClassLoadConfig classLoadConfig) Construct without prefix of serverName. -
Method Summary
Modifier and TypeMethodDescription<T> TcreateInstance(Class<T> pluginType, String classname) Return the instance to use (can be null) for the given plugin.<T> TcreateInstance(Class<T> pluginType, String key, T instance) Return the instance to use (can be null) for the given plugin.Get a property with no default value.Get a property with a default value.booleangetBoolean(String key, boolean defaultValue) Return a boolean property value.doubleReturn a double property value.<T extends Enum<T>>
TReturn a Enum property value.intReturn an int property value.longReturn a long property value.Return the serverName (optional).
-
Field Details
-
properties
-
prefix
-
serverName
-
-
Constructor Details
-
PropertiesWrapper
public PropertiesWrapper(String prefix, String serverName, Properties properties, ClassLoadConfig classLoadConfig) Construct with a prefix, serverName and properties. -
PropertiesWrapper
Construct without prefix of serverName.
-
-
Method Details
-
getServerName
Return the serverName (optional). -
get
-
get
-
getDouble
Return a double property value. -
getInt
Return an int property value. -
getLong
Return a long property value. -
getBoolean
Return a boolean property value. -
getEnum
-
createInstance
-
createInstance
-