SandboxConfigurationFactory

public class SandboxConfigurationFactory
extends ConfigurationFactory

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


サンドボックス化を目的とした構成の作成を処理する特別な構成ファクトリ。

TODO: 構成ダンプ部分を別のクラスに分割する

概要

フィールド

public static final Set<String> OPTION_IGNORED_ELEMENTS

パブリック コンストラクタ

SandboxConfigurationFactory()

パブリック メソッド

IConfiguration createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)

指定されたコマンドラインとサンドボックスに基づいて IConfiguration を作成します。

IConfiguration createConfigurationFromArgs(String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig, boolean skipJavaCheck)

指定されたコマンドラインとサンドボックスに基づいて IConfiguration を作成します。

IConfiguration createConfigurationFromArgs(String[] arrayArgs, SandboxConfigDump.DumpCmd command)

コマンドのダンプを実行する場合。

static SandboxConfigurationFactory getInstance()

シングルトンの IConfigurationFactory インスタンスを取得します。

保護されたメソッド

ConfigurationDef createConfigurationDef(String name)

ConfigurationDef を作成する内部メソッド

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

指定された名前の ConfigurationDef を取得します。

フィールド

OPTION_IGNORED_ELEMENTS

public static final Set<String> OPTION_IGNORED_ELEMENTS

パブリック コンストラクタ

SandboxConfigurationFactory

public SandboxConfigurationFactory ()

パブリック メソッド

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] args, 
                IKeyStoreClient keyStoreClient, 
                ISandbox sandbox, 
                IRunUtil runUtil)

指定されたコマンドラインとサンドボックスに基づいて IConfiguration を作成します。

パラメータ
args String: 実行のコマンドライン。

keyStoreClient IKeyStoreClient: 鍵を読み込む IKeyStoreClient

sandbox ISandbox: 実行に使用される ISandbox

runUtil IRunUtil: コマンドを実行する IRunUtil

戻り値
IConfiguration サンドボックスに対して有効な IConfiguration

例外
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] args, 
                IKeyStoreClient keyStoreClient, 
                ISandbox sandbox, 
                IRunUtil runUtil, 
                File globalConfig, 
                boolean skipJavaCheck)

指定されたコマンドラインとサンドボックスに基づいて IConfiguration を作成します。

パラメータ
args String: 実行のコマンドライン。

keyStoreClient IKeyStoreClient: 鍵を読み込む IKeyStoreClient

sandbox ISandbox: 実行に使用される ISandbox

runUtil IRunUtil: コマンドを実行する IRunUtil

globalConfig File

skipJavaCheck boolean

戻り値
IConfiguration サンドボックスに対して有効な IConfiguration

例外
com.android.tradefed.config.ConfigurationException
ConfigurationException

createConfigurationFromArgs

public IConfiguration createConfigurationFromArgs (String[] arrayArgs, 
                SandboxConfigDump.DumpCmd command)

コマンドのダンプを実行する場合。特定の想定で構成を作成します。

パラメータ
arrayArgs String: 実行のコマンドライン。

command SandboxConfigDump.DumpCmd: 進行中のダンプコマンド

戻り値
IConfiguration バージョン管理されたサンドボックスに対して有効な IConfiguration

例外
com.android.tradefed.config.ConfigurationException
ConfigurationException

getInstance

public static SandboxConfigurationFactory getInstance ()

シングルトンの IConfigurationFactory インスタンスを取得します。

戻り値
SandboxConfigurationFactory

保護されたメソッド

createConfigurationDef

protected ConfigurationDef createConfigurationDef (String name)

ConfigurationDef を作成する内部メソッド

パラメータ
name String

戻り値
ConfigurationDef

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                Map<String, String> templateMap)

指定された名前の ConfigurationDef を取得します。

パラメータ
name String: 読み込む組み込み構成の名前、または読み込む構成ファイル のファイルパス

isGlobal boolean

templateMap Map

戻り値
ConfigurationDef ConfigurationDef

例外
ConfigurationException