IConfigDefLoader

interface IConfigDefLoader

com.android.tradefed.config.IConfigDefLoader
Known Indirect Subclasses
ConfigurationFactory.ConfigLoader Implementation of IConfigDefLoader that tracks the included configurations from one root config, and throws an exception on circular includes. 


Interface for retrieving a ConfigurationDef.

Summary

Public methods

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

Retrieve the ConfigurationDef for the given name

abstract boolean isGlobalConfig()
abstract void loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, Map<String, String> templateMap)

Load a config's data into the given ConfigurationDef

Public methods

getConfigurationDef

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 if an error occurred loading the config

isGlobalConfig

boolean isGlobalConfig ()

Returns
boolean

loadIncludedConfiguration

void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                Map<String, String> templateMap)

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
templateMap Map
Throws
ConfigurationException if an error occurred loading the config