SandboxConfigurationFactory
public class SandboxConfigurationFactory
extends ConfigurationFactory
java.lang.Object | ||
↳ | com.android.tradefed.config.ConfigurationFactory | |
↳ | com.android.tradefed.config.SandboxConfigurationFactory |
Nhà máy Cấu hình Đặc biệt để xử lý việc tạo cấu hình cho mục đích Sandboxing.
TODO: Tách phần kết xuất cấu hình sang lớp khác
Bản tóm tắt
Lĩnh vực | |
---|---|
public static final | OPTION_IGNORED_ELEMENTS
|
nhà thầu công cộng | |
---|---|
SandboxConfigurationFactory () |
Phương thức công khai | |
---|---|
IConfiguration | createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil) Tạo |
IConfiguration | createConfigurationFromArgs (String[] arrayArgs, SandboxConfigDump.DumpCmd command) Khi chạy kết xuất cho một lệnh. |
IConfiguration | createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig) Tạo |
static SandboxConfigurationFactory | getInstance () Lấy phiên bản |
phương pháp được bảo vệ | |
---|---|
ConfigurationDef | createConfigurationDef (String name) Phương pháp nội bộ để tạo |
ConfigurationDef | getConfigurationDef (String name, boolean isGlobal, templateMap) getConfigurationDef (String name, boolean isGlobal, templateMap) Truy xuất |
Lĩnh vực
OPTION_IGNORED_ELEMENTS
public static finalOPTION_IGNORED_ELEMENTS
nhà thầu công cộng
SandboxConfigurationFactory
public SandboxConfigurationFactory ()
Phương thức công khai
tạoConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil)
Tạo IConfiguration
dựa trên dòng lệnh và hộp cát được cung cấp.
Thông số | |
---|---|
args | String : dòng lệnh chạy. |
keyStoreClient | IKeyStoreClient : IKeyStoreClient nơi tải khóa từ đó. |
sandbox | ISandbox : ISandbox được sử dụng để chạy. |
runUtil | IRunUtil : IRunUtil để chạy các lệnh. |
trả lại | |
---|---|
IConfiguration | một IConfiguration hợp lệ cho sandbox. |
ném | |
---|---|
| com.android.tradefed.config.ConfigurationException |
ConfigurationException |
tạoConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] arrayArgs, SandboxConfigDump.DumpCmd command)
Khi chạy kết xuất cho một lệnh. Tạo một cấu hình với những kỳ vọng cụ thể.
Thông số | |
---|---|
arrayArgs | String : dòng lệnh chạy. |
command | SandboxConfigDump.DumpCmd : Đang xử lý lệnh kết xuất |
trả lại | |
---|---|
IConfiguration | một IConfiguration hợp lệ cho Sandbox PHIÊN BẢN. |
ném | |
---|---|
| com.android.tradefed.config.ConfigurationException |
ConfigurationException |
tạoConfigurationFromArgs
public IConfiguration createConfigurationFromArgs (String[] args, IKeyStoreClient keyStoreClient, ISandbox sandbox, IRunUtil runUtil, File globalConfig)
Tạo IConfiguration
dựa trên dòng lệnh và hộp cát được cung cấp.
Thông số | |
---|---|
args | String : dòng lệnh chạy. |
keyStoreClient | IKeyStoreClient : IKeyStoreClient nơi tải khóa từ đó. |
sandbox | ISandbox : ISandbox được sử dụng để chạy. |
runUtil | IRunUtil : IRunUtil để chạy các lệnh. |
globalConfig | File |
trả lại | |
---|---|
IConfiguration | một IConfiguration hợp lệ cho sandbox. |
ném | |
---|---|
| com.android.tradefed.config.ConfigurationException |
ConfigurationException |
getInstance
public static SandboxConfigurationFactory getInstance ()
Lấy phiên bản IConfigurationFactory
đơn lẻ.
trả lại | |
---|---|
SandboxConfigurationFactory |
phương pháp được bảo vệ
tạoConfigurationDef
protected ConfigurationDef createConfigurationDef (String name)
Phương pháp nội bộ để tạo ConfigurationDef
Thông số | |
---|---|
name | String |
trả lại | |
---|---|
ConfigurationDef |
getConfigurationDef
protected ConfigurationDef getConfigurationDef (String name, boolean isGlobal,templateMap)
Truy xuất ConfigurationDef
cho tên đã cho
Thông số | |
---|---|
name | String : tên của cấu hình tích hợp để tải hoặc đường dẫn tệp đến tệp cấu hình để tải |
isGlobal | boolean |
templateMap |
trả lại | |
---|---|
ConfigurationDef | ConfigurationDef |
ném | |
---|---|
ConfigurationException |