ConfigurationFactory.ConfigLoader
protected class ConfigurationFactory.ConfigLoader
extends Object
java.lang.Object |
↳ | com.android.tradefed.config.ConfigurationFactory.ConfigLoader |
1 つのルート構成からインクルードされた構成を追跡し、循環インクルードで例外をスローするIConfigDefLoader
の実装。
まとめ
公開メソッド |
---|
ConfigurationDef | getConfigurationDef (String name, templateMap) getConfigurationDef (String name, templateMap) |
boolean | isGlobalConfig () |
void | loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen) loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen) loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen) tradefed.jar 内にバンドルされている構成には、tradefed.jar 内にバンドルされている他の構成のみを含めることができます。 |
パブリック コンストラクター
ConfigLoader
public ConfigLoader (boolean isGlobalConfig)
パラメーター |
---|
isGlobalConfig | boolean |
公開メソッド
getConfigurationDef
public ConfigurationDef getConfigurationDef (String name,
templateMap)
パラメーター |
---|
name | String |
templateMap | |
isGlobalConfig
public boolean isGlobalConfig ()
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 | |
保護されたメソッド
findConfigName
protected String findConfigName (String name,
String parentName)
その名前とその親の名前に基づいて構成の名前を見つけます。これは、バンドル構成とローカル構成を適切に処理するために使用されます。
パラメーター |
---|
name | String : 構成の名前 |
parentName | String : 構成の親の名前。 |
isBundledConfig
protected boolean isBundledConfig (String name)
クラスパス内で見つかった構成ファイルである場合は true を返します。
isTrackableConfig
protected boolean isTrackableConfig (String name)
構成のライフサイクルを追跡するかどうか。
パラメーター |
---|
name | String : 構成の名前 |
戻り値 |
---|
boolean | 構成が追跡可能な場合はtrue 、そうでない場合はfalse 。 |
トラック構成
protected void trackConfig (String name,
ConfigurationDef def)
動的読み込みの構成を追跡します。現在、ローカル ファイルのみがサポートされています。
パラメーター |
---|
name | String : 構成の名前 |
def | ConfigurationDef : 構成の定義。 |