ConfigurationFactory.ExceptionLoader

protected class ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader

java.lang.Object
com.android.tradefed.config.ConfigurationFactory.ConfigLoader
  com.android.tradefed.config.ConfigurationFactory.ExceptionLoader


摘要

公共构造函数

ExceptionLoader(boolean isGlobal)

公共方法

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

boolean isBundledConfig(String name)

如果它是类路径中找到的配置文件,则返回 true。

void loadConfiguration(String name, ConfigurationDef def, String deviceTagObject, Map<String, String> templateMap, Set<String> templateSeen)
void loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, String deviceTagObject, Map<String, String> templateMap, Set<String> templateSeen)

捆绑在 tradefed.jar 中的配置只能包含同样 捆绑在 tradefed.jar 中的其他配置。

受保护的方法

String findConfigName(String name, String parentName)

根据配置的名称及其父项的名称查找配置的名称。

boolean isTrackableConfig(String name)

是否应跟踪配置的生命周期。

void trackConfig(String name, ConfigurationDef def)

跟踪配置以进行动态加载。

公共构造函数

ExceptionLoader

public ExceptionLoader (boolean isGlobal)

参数
isGlobal boolean

公共方法

getConfigurationDef

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

参数
name String

templateMap Map

返回
ConfigurationDef

抛出
ConfigurationException

isBundledConfig

public boolean isBundledConfig (String name)

如果它是类路径中找到的配置文件,则返回 true。

参数
name String

返回
boolean

loadConfiguration

public void loadConfiguration (String name, 
                ConfigurationDef def, 
                String deviceTagObject, 
                Map<String, String> templateMap, 
                Set<String> templateSeen)

参数
name String

def ConfigurationDef

deviceTagObject String

templateMap Map

templateSeen Set

抛出
ConfigurationException

loadIncludedConfiguration

public void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                String deviceTagObject, 
                Map<String, String> templateMap, 
                Set<String> templateSeen)

捆绑在 tradefed.jar 中的配置只能包含同样 捆绑在 tradefed.jar 中的其他配置。不过,本地(外部)配置可以包含本地 (外部)配置和捆绑配置。

参数
def ConfigurationDef

parentName String

name String

deviceTagObject String

templateMap Map

templateSeen Set

抛出
ConfigurationException

受保护的方法

findConfigName

protected String findConfigName (String name, 
                String parentName)

根据配置的名称及其父项的名称查找配置的名称。这用于正确处理 捆绑配置和本地配置。

参数
name String:配置的名称

parentName String:配置的父项的名称。

返回
String 配置的完整名称。

isTrackableConfig

protected boolean isTrackableConfig (String name)

是否应跟踪配置的生命周期。

参数
name String:配置的名称

返回
boolean 如果配置可跟踪,则为 true,否则为 false

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

跟踪配置以进行动态加载。目前仅支持本地文件。

参数
name String:配置的名称

def ConfigurationDef:配置的定义。