to top
class

ConfigurationFactory.ConfigLoader

extends Object
implements IConfigDefLoader
java.lang.Object
   ↳ com.android.tradefed.config.ConfigurationFactory.ConfigLoader

Class Overview

Implementation of IConfigDefLoader that tracks the included configurations from one root config, and throws an exception on circular includes.

Summary

Public Constructors
ConfigurationFactory.ConfigLoader(boolean isGlobalConfig)
Public Methods
ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap)
Retrieve the ConfigurationDef for the given name
boolean isGlobalConfig()
void loadIncludedConfiguration(ConfigurationDef def, String parentName, String name)
Load a config's data into the given ConfigurationDef
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.config.IConfigDefLoader

Public Constructors

public ConfigurationFactory.ConfigLoader (boolean isGlobalConfig)

Parameters
isGlobalConfig boolean

Public Methods

public ConfigurationDef getConfigurationDef (String name, Map<String, String> templateMap)

Retrieve the ConfigurationDef for the given name

Parameters
templateMap Map: map of template-include names to configuration filenames
Returns
ConfigurationDef ConfigurationDef
Throws
ConfigurationException

public boolean isGlobalConfig ()

Returns
boolean

public void loadIncludedConfiguration (ConfigurationDef def, String parentName, String name)

Load a config's data into the given ConfigurationDef

Parameters
def ConfigurationDef: the ConfigurationDef to load the data into
parentName String: the name of the parent config
name String: the name of config to include
Returns
void ConfigurationDef
Throws
ConfigurationException