沙盒配置工厂

public class SandboxConfigurationFactory
extends ConfigurationFactory

java.lang.Object
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

领域

选项_忽略_元素

public static final  OPTION_IGNORED_ELEMENTS

公共构造函数

沙盒配置工厂

public SandboxConfigurationFactory ()

公共方法

从参数创建配置

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

从参数创建配置

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

从参数创建配置

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

运行命令转储时。创建具有特定期望的配置。

参数
arrayArgs String :运行的命令行。

command SandboxConfigDump.DumpCmd :正在进行转储命令

退货
IConfiguration对 VERSIONED Sandbox 有效的IConfiguration

投掷
com.android.tradefed.config.ConfigurationException
ConfigurationException

获取实例

public static SandboxConfigurationFactory getInstance ()

获取单例IConfigurationFactory实例。

退货
SandboxConfigurationFactory

受保护的方法

创建配置定义

protected ConfigurationDef createConfigurationDef (String name)

创建ConfigurationDef内部方法

参数
name String

退货
ConfigurationDef

获取配置定义

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

检索给定名称的ConfigurationDef

参数
name String :要加载的内置配置的名称或要加载的配置文件的文件路径

isGlobal boolean

templateMap

退货
ConfigurationDef ConfigurationDef

投掷
ConfigurationException