Nhà máy cấu hình Sandbox

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 Hộp cát.

VIỆC CẦN LÀM: Phân tách phần kết xuất cấu hình cho một lớp khác

Tóm tắt

Trường

public static final OPTION_IGNORED_ELEMENTS

Hàm khởi tạo công khai

SandboxConfigurationFactory()

Phương thức công khai

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.

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

Khi chạy tệp kết xuất cho một lệnh.

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.

static SandboxConfigurationFactory getInstance()

Lấy thực thể singleton IConfigurationFactory.

Phương thức được bảo vệ

ConfigurationDef createConfigurationDef(String name)

Phương thức nội bộ để tạo ConfigurationDef

ConfigurationDef getConfigurationDef(String name, boolean isGlobal, templateMap)

Truy xuất ConfigurationDef cho tên được cung cấp

Trường

OPTION_REMOVED_ELEMENTS

public static final  OPTION_IGNORED_ELEMENTS

Hàm khởi tạo công khai

Nhà máy cấu hình Sandbox

public SandboxConfigurationFactory ()

Phương thức công khai

createCấu hìnhTừArgs

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.

Tham số
args String: dòng lệnh để chạy.

keyStoreClient IKeyStoreClient: IKeyStoreClient nơi để tải khoá.

sandbox ISandbox: ISandbox dùng để chạy.

runUtil IRunUtil: IRunUtil để chạy các lệnh.

Giá trị trả về
IConfiguration IConfiguration hợp lệ cho hộp cát.

Gửi
ConfigurationException

createCấu hìnhTừArgs

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

Khi chạy tệp 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ể.

Tham số
arrayArgs String: dòng lệnh để chạy.

command SandboxConfigDump.DumpCmd: Lệnh kết xuất đang được xử lý

Giá trị trả về
IConfiguration IConfiguration hợp lệ cho Hộp cát PHIÊN BẢN.

Gửi
ConfigurationException

createCấu hìnhTừArgs

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.

Tham số
args String: dòng lệnh để chạy.

keyStoreClient IKeyStoreClient: IKeyStoreClient nơi để tải khoá.

sandbox ISandbox: ISandbox dùng để chạy.

runUtil IRunUtil: IRunUtil để chạy các lệnh.

globalConfig File

Giá trị trả về
IConfiguration IConfiguration hợp lệ cho hộp cát.

Gửi
ConfigurationException

getInstance

public static SandboxConfigurationFactory getInstance ()

Lấy thực thể singleton IConfigurationFactory.

Giá trị trả về
SandboxConfigurationFactory

Phương thức được bảo vệ

createConfigurationDef

protected ConfigurationDef createConfigurationDef (String name)

Phương thức nội bộ để tạo ConfigurationDef

Tham số
name String

Giá trị trả về
ConfigurationDef

getConfigurationDef

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

Truy xuất ConfigurationDef cho tên được cung cấp

Tham số
name String: tên của cấu hình tích hợp sẵn cần tải hoặc đường dẫn tệp đến tệp cấu hình để tải

isGlobal boolean

templateMap

Giá trị trả về
ConfigurationDef ConfigurationDef

Gửi
ConfigurationException