サンドボックス構成ファクトリー

public class SandboxConfigurationFactory
extends ConfigurationFactory

java.lang.オブジェクト
com.android.tradefed.config.ConfigurationFactory
com.android.tradefed.config.SandboxConfigurationFactory


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

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

まとめ

田畑

public static final 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, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap)

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

田畑

OPTION_IGNORED_ELEMENTS

public static final  OPTION_IGNORED_ELEMENTS

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

サンドボックス構成ファクトリー

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 VERSIONED サンドボックスに対して有効なIConfiguration

投げる
com.android.tradefed.config.ConfigurationException
ConfigurationException

インスタンスの取得

public static SandboxConfigurationFactory getInstance ()

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

戻り値
SandboxConfigurationFactory

保護されたメソッド

createConfigurationDef

protected ConfigurationDef createConfigurationDef (String name)

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

パラメーター
name String

戻り値
ConfigurationDef

getConfigurationDef

protected ConfigurationDef getConfigurationDef (String name, 
                boolean isGlobal, 
                 templateMap)

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

パラメーター
name String : ロードする組み込み構成の名前、またはロードする構成ファイルへのファイル パス

isGlobal boolean

templateMap

戻り値
ConfigurationDef ConfigurationDef

投げる
ConfigurationException