ConfigurationFactory.ConfigLoader

protected class ConfigurationFactory.ConfigLoader
extends Object

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


1 つの ルート構成から含まれる構成を追跡し、循環的なインクルードで例外をスローする 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: 構成の定義。