public String getProperty( String key ) { for (int i = configs.length - 1; i >= 0; --i) { MultiPropertiesConfig config = configs[i]; String check = config.getProperty(key); if (check != null) return check; } return null; } }
public String getProperty( String key ) { for (int i = configs.length - 1; i >= 0; --i) { MultiPropertiesConfig config = configs[i]; String check = config.getProperty(key); if (check != null) return check; } return null; } }
public String getProperty( String key ) { for (int i = configs.length - 1; i >= 0; --i) { MultiPropertiesConfig config = configs[i]; String check = config.getProperty(key); if (check != null) return check; } return null; }
public synchronized static String getProperty( String key ) { ensureLoad(); return CONFIG.getProperty( key ); }
private static String getRegistryName() { String name = C3P0Config.getMultiPropertiesConfig().getProperty( C3P0_REGISTRY_NAME_KEY ); if ( name == null ) name = C3P0_REGISTRY_NAME_PFX; // a name property is optional else name = C3P0_REGISTRY_NAME_PFX + ",name=" + name; return name; } }
private static String getRegistryName() { String name = C3P0Config.getMultiPropertiesConfig().getProperty( C3P0_REGISTRY_NAME_KEY ); if ( name == null ) name = C3P0_REGISTRY_NAME_PFX; // a name property is optional else name = C3P0_REGISTRY_NAME_PFX + ",name=" + name; return name; } }
public static String getPropFileConfigProperty( String prop ) { return MultiPropertiesConfig.readVmConfig().getProperty( prop ); }
public static String getPropsFileConfigProperty( String prop ) { return MPCONFIG().getProperty( prop ); }
public static String getPropFileConfigProperty( String prop ) { return MultiPropertiesConfig.readVmConfig().getProperty( prop ); }
public static String getPropsFileConfigProperty( String prop ) { return MPCONFIG().getProperty( prop ); }
public DefaultConnectionTester() { // we prefer SWITCH to THREAD_LOCAL for now only because it has less overhead in the expected code path. // // when modifying this default, don't forget to also modify the log message in reflectTestRunner(...) // QuerylessTestRunner defaultQuerylessTestRunner = SWITCH; // Adding a new config parameter for this is useless overkill, I think. // Both THREAD_LOCAL and SWITCH work very well, extra overhead from resolving // to METADATA_TABLESEARCH or IS_VALID does not seem to be significant. String prop = C3P0Config.getMultiPropertiesConfig().getProperty( PROP_KEY ); if ( prop == null ) querylessTestRunner = defaultQuerylessTestRunner; else { QuerylessTestRunner reflected = reflectTestRunner( prop.trim() ); querylessTestRunner = ( reflected != null ? reflected : defaultQuerylessTestRunner ); } }
public DefaultConnectionTester() { // we prefer SWITCH to THREAD_LOCAL for now only because it has less overhead in the expected code path. // // when modifying this default, don't forget to also modify the log message in reflectTestRunner(...) // QuerylessTestRunner defaultQuerylessTestRunner = SWITCH; // Adding a new config parameter for this is useless overkill, I think. // Both THREAD_LOCAL and SWITCH work very well, extra overhead from resolving // to METADATA_TABLESEARCH or IS_VALID does not seem to be significant. String prop = C3P0Config.getMultiPropertiesConfig().getProperty( PROP_KEY ); if ( prop == null ) querylessTestRunner = defaultQuerylessTestRunner; else { QuerylessTestRunner reflected = reflectTestRunner( prop.trim() ); querylessTestRunner = ( reflected != null ? reflected : defaultQuerylessTestRunner ); } }
String cfgFile = MultiPropertiesConfig.readVmConfig().getProperty( XML_CFG_FILE_KEY ); if (cfgFile == null)
String cfgFile = MultiPropertiesConfig.readVmConfig().getProperty( XML_CFG_FILE_KEY ); if (cfgFile == null)
String cname = MPCONFIG().getProperty( CFG_FINDER_CLASSNAME_KEY );
String cname = MPCONFIG().getProperty( CFG_FINDER_CLASSNAME_KEY );