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, templateMap)

boolean isGlobalConfig()

void loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, 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, 
                 templateMap)

パラメータ
name String

templateMap

戻り値
ConfigurationDef

例外
ConfigurationException

isGlobalConfig

public boolean isGlobalConfig ()

戻り値
boolean

loadIncludedConfiguration

public void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                String deviceTagObject, 
                 templateMap, 
                 templateSeen)

tradefed.jar 内にバンドルされた構成には、tradefed.jar 内にバンドルされている他の構成のみを含めることができます。ただし、ローカル(外部)構成には、ローカル(外部)構成とバンドル構成の両方を含めることができます。

パラメータ
def ConfigurationDef

parentName String

name String

deviceTagObject String

templateMap

templateSeen

例外
ConfigurationException

保護されたメソッド

findConfigName

protected String findConfigName (String name, 
                String parentName)

名前と親の名前に基づいて構成の名前を検索します。これは、バンドル構成とローカル構成を適切に処理するために使用されます。

パラメータ
name String: config の名前

parentName String: config の親の名前。

戻り値
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: config の名前

戻り値
boolean 構成がトラッキング可能であれば true、そうでない場合は false

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

動的読み込みのトラックの構成。現在のところ、ローカル ファイルのみがサポートされています。

パラメータ
name String: config の名前

def ConfigurationDef: 構成のデフォルト。