Class C3P0Config


  • public final class C3P0Config
    extends java.lang.Object
    • Field Detail

      • CFG_FINDER_CLASSNAME_KEY

        public static final java.lang.String CFG_FINDER_CLASSNAME_KEY
        See Also:
        Constant Field Values
      • DEFAULT_CONFIG_NAME

        public static final java.lang.String DEFAULT_CONFIG_NAME
        See Also:
        Constant Field Values
      • PROPS_FILE_RSRC_PATH

        public static final java.lang.String PROPS_FILE_RSRC_PATH
        See Also:
        Constant Field Values
    • Method Detail

      • allCurrentProperties

        public static java.util.Properties allCurrentProperties()
      • setMainConfig

        public static void setMainConfig​(C3P0Config protoMain)
      • refreshMainConfig

        public static void refreshMainConfig()
      • refreshMainConfig

        public static void refreshMainConfig​(com.mchange.v2.cfg.MultiPropertiesConfig[] overrides,
                                             java.lang.String overridesDescription)
      • getPropsFileConfigProperty

        public static java.lang.String getPropsFileConfigProperty​(java.lang.String prop)
      • getUnspecifiedUserProperty

        public static java.lang.String getUnspecifiedUserProperty​(java.lang.String propKey,
                                                                  java.lang.String configName)
      • getExtensions

        public static java.util.Map getExtensions​(java.lang.String configName)
      • getUnspecifiedUserProperties

        public static java.util.Map getUnspecifiedUserProperties​(java.lang.String configName)
      • getUserOverrides

        public static java.util.Map getUserOverrides​(java.lang.String configName)
      • getUserOverridesAsString

        public static java.lang.String getUserOverridesAsString​(java.lang.String configName)
                                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • bindUserOverridesAsString

        public static void bindUserOverridesAsString​(java.lang.Object bean,
                                                     java.lang.String uoas)
                                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • bindUserOverridesToBean

        public static void bindUserOverridesToBean​(java.lang.Object bean,
                                                   java.lang.String configName)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • bindNamedConfigToBean

        public static void bindNamedConfigToBean​(java.lang.Object bean,
                                                 java.lang.String configName,
                                                 boolean shouldBindUserOverridesAsString)
                                          throws java.beans.IntrospectionException
        Throws:
        java.beans.IntrospectionException
      • initializeUserOverridesAsString

        public static java.lang.String initializeUserOverridesAsString()
      • initializeExtensions

        public static java.util.Map initializeExtensions()
      • initializeStringPropertyVar

        public static java.lang.String initializeStringPropertyVar​(java.lang.String propKey,
                                                                   java.lang.String dflt,
                                                                   com.mchange.v2.c3p0.cfg.Validator<java.lang.String> validator)
      • initializeStringPropertyVar

        public static java.lang.String initializeStringPropertyVar​(java.lang.String propKey,
                                                                   java.lang.String dflt)
      • initializeIntPropertyVar

        public static int initializeIntPropertyVar​(java.lang.String propKey,
                                                   int dflt)
      • initializeBooleanPropertyVar

        public static boolean initializeBooleanPropertyVar​(java.lang.String propKey,
                                                           boolean dflt)
      • getMultiPropertiesConfig

        public static com.mchange.v2.cfg.MultiPropertiesConfig getMultiPropertiesConfig()