GCSConfigurationFactory.GCSConfigLoader

protected class GCSConfigurationFactory.GCSConfigLoader
extends ConfigurationFactory.ConfigLoader

java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationFactory.ConfigLoader
     ↳ com.android.tradefed.config.gcs.GCSConfigurationFactory.GCSConfigLoader


Extension of ConfigurationFactory.ConfigLoader that loads config from GCS, tracks the included configurations from one root config, and throws an exception on circular includes.

Summary

Public constructors

GCSConfigLoader(boolean isGlobalConfig)

Protected methods

String findConfigName(String name, String parentName)

Find config's name based on its name and its parent name.

void trackConfig(String name, ConfigurationDef def)

Track config for dynamic loading.

Public constructors

GCSConfigLoader

public GCSConfigLoader (boolean isGlobalConfig)

Parameters
isGlobalConfig boolean

Protected methods

findConfigName

protected String findConfigName (String name, 
                String parentName)

Find config's name based on its name and its parent name. This is used to properly handle bundle configs and local configs.

Parameters
name String: config's name

parentName String: config's parent's name.

Returns
String the config's full name.

Throws
ConfigurationException

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

Track config for dynamic loading. Right now only local files are supported.

Parameters
name String: config's name

def ConfigurationDef: config's def.