public final class C3P0ConfigUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPS_FILE_PROP_PFX |
static int |
PROPS_FILE_PROP_PFX_LEN |
static java.lang.String |
PROPS_FILE_RSRC_PATH |
Modifier and Type | Method and Description |
---|---|
static C3P0Config |
configFromFlatDefaults(java.util.HashMap flatDefaults) |
static java.lang.Boolean |
extractBooleanOverride(java.lang.String propName,
java.lang.String userName,
java.util.Map userOverrides) |
static java.util.HashMap |
extractC3P0PropertiesResources() |
static java.util.HashMap |
extractHardcodedC3P0Defaults() |
static java.util.HashMap |
extractHardcodedC3P0Defaults(boolean stringify_coercibles) |
static java.lang.Object |
extractUserOverride(java.lang.String propName,
java.lang.String userName,
java.util.Map userOverrides) |
static java.util.Properties |
findResourceProperties() |
static java.lang.String |
getPropsFileConfigProperty(java.lang.String prop) |
public static final java.lang.String PROPS_FILE_RSRC_PATH
public static final java.lang.String PROPS_FILE_PROP_PFX
public static final int PROPS_FILE_PROP_PFX_LEN
public static java.util.HashMap extractHardcodedC3P0Defaults(boolean stringify_coercibles)
stringify_coercibles
- these properties may eventually be used to initialize bean properties
reflectively. to avoid having to get types exactly right (e.g. is it a Double or a double or an int?),
it can be convenient to just represent these values as Strings and coerce those to the appropriate
type when needed using com.mchange.v2.lang.Coerce. If true, we convert all coercible values into Strings.
Non-coercible values are always left alone.public static java.util.HashMap extractHardcodedC3P0Defaults()
public static java.util.HashMap extractC3P0PropertiesResources()
public static C3P0Config configFromFlatDefaults(java.util.HashMap flatDefaults)
public static java.lang.String getPropsFileConfigProperty(java.lang.String prop)
public static java.util.Properties findResourceProperties()
public static java.lang.Object extractUserOverride(java.lang.String propName, java.lang.String userName, java.util.Map userOverrides)
public static java.lang.Boolean extractBooleanOverride(java.lang.String propName, java.lang.String userName, java.util.Map userOverrides)