Package com.mchange.v2.c3p0.cfg
Class C3P0ConfigUtils
java.lang.Object
com.mchange.v2.c3p0.cfg.C3P0ConfigUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic C3P0Config
configFromFlatDefaults
(HashMap flatDefaults) static Boolean
extractBooleanOverride
(String propName, String userName, Map userOverrides) static HashMap
static HashMap
static HashMap
extractHardcodedC3P0Defaults
(boolean stringify_coercibles) static Object
extractUserOverride
(String propName, String userName, Map userOverrides) static Properties
static String
-
Field Details
-
PROPS_FILE_RSRC_PATH
- See Also:
-
PROPS_FILE_PROP_PFX
- See Also:
-
PROPS_FILE_PROP_PFX_LEN
public static final int PROPS_FILE_PROP_PFX_LEN- See Also:
-
-
Method Details
-
extractHardcodedC3P0Defaults
- Parameters:
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.
-
extractHardcodedC3P0Defaults
-
extractC3P0PropertiesResources
-
configFromFlatDefaults
-
getPropsFileConfigProperty
-
findResourceProperties
-
extractUserOverride
- Returns:
- null if no per-user override is found
-
extractBooleanOverride
-