ConfigurationFactory.ConfigLoader

protected class ConfigurationFactory.ConfigLoader
extends Object

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


IConfigDefLoader 的實作項目,可追蹤單一根設定中包含的設定,並在發生循環包含時擲回例外狀況。

摘要

公用建構函式

ConfigLoader(boolean isGlobalConfig)

公用方法

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

boolean isGlobalConfig()

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 isBundledConfig(String name)

如果這是類路徑中找到的設定檔,則傳回 true。

boolean isTrackableConfig(String name)

是否應追蹤設定的生命週期。

void trackConfig(String name, ConfigurationDef def)

追蹤動態載入的設定。

公用建構函式

ConfigLoader

public ConfigLoader (boolean isGlobalConfig)

參數
isGlobalConfig boolean

公用方法

getConfigurationDef

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

參數
name String

templateMap Map

傳回
ConfigurationDef

擲回
ConfigurationException

isGlobalConfig

public boolean isGlobalConfig ()

傳回
boolean

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 設定的完整名稱。

擲回
com.android.tradefed.config.ConfigurationException
ConfigurationException

isBundledConfig

protected boolean isBundledConfig (String name)

如果這是類路徑中找到的設定檔,則傳回 true。

參數
name String

傳回
boolean

isTrackableConfig

protected boolean isTrackableConfig (String name)

是否應追蹤設定的生命週期。

參數
name String:設定的名稱

傳回
boolean 如果設定可追蹤,則為 true,否則為 false

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

追蹤動態載入的設定。目前僅支援本機檔案。

參數
name String:設定的名稱

def ConfigurationDef:設定的定義。