ConfigurationFactory.ConfigLoader

protected class ConfigurationFactory.ConfigLoader
extends Object

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


การใช้งาน IConfigDefLoader ที่ติดตามการกำหนดค่าที่รวมมาจากการกำหนดค่ารูทเดียว และส่งข้อยกเว้นในการรวมแบบวงกลม

สรุป

ผู้รับเหมาก่อสร้างสาธารณะ

ConfigLoader (boolean isGlobalConfig)

วิธีการสาธารณะ

ConfigurationDef getConfigurationDef (String name, templateMap) getConfigurationDef (String name, templateMap)

boolean isGlobalConfig ()

void loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen) loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen) loadIncludedConfiguration ( ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen)

การกำหนดค่าที่รวมอยู่ใน tradefed.jar สามารถรวมเฉพาะการกำหนดค่าอื่นๆ ที่รวมอยู่ใน tradefed.jar ด้วย

วิธีการที่ได้รับการป้องกัน

String findConfigName (String name, String parentName)

ค้นหาชื่อการกำหนดค่าตามชื่อและชื่อหลัก

boolean isBundledConfig (String name)

คืนค่าเป็นจริงหากเป็นไฟล์กำหนดค่าที่พบในคลาสพาธ

boolean isTrackableConfig (String name)

ควรติดตามวงจรชีวิตของการกำหนดค่าหรือไม่

void trackConfig (String name, ConfigurationDef def)

ติดตามการกำหนดค่าสำหรับการโหลดแบบไดนามิก

ผู้รับเหมาก่อสร้างสาธารณะ

ConfigLoader

public ConfigLoader (boolean isGlobalConfig)

พารามิเตอร์
isGlobalConfig boolean

วิธีการสาธารณะ

รับการกำหนดค่าDef

public ConfigurationDef getConfigurationDef (String name, 
                 templateMap)

พารามิเตอร์
name String

templateMap

การส่งคืน
ConfigurationDef

ขว้าง
ConfigurationException

isGlobalConfig

public boolean isGlobalConfig ()

การส่งคืน
boolean

โหลดรวมการกำหนดค่า

public void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                String deviceTagObject, 
                 templateMap, 
                 templateSeen)

การกำหนดค่าที่รวมอยู่ใน tradefed.jar สามารถรวมเฉพาะการกำหนดค่าอื่นๆ ที่รวมอยู่ใน tradefed.jar ด้วย อย่างไรก็ตาม การกำหนดค่าภายใน (ภายนอก) สามารถมีทั้งการกำหนดค่าภายใน (ภายนอก) และการกำหนดค่าแบบรวม

พารามิเตอร์
def ConfigurationDef

parentName String

name String

deviceTagObject String

templateMap

templateSeen

ขว้าง
ConfigurationException

วิธีการที่ได้รับการป้องกัน

ค้นหาConfigName

protected String findConfigName (String name, 
                String parentName)

ค้นหาชื่อการกำหนดค่าตามชื่อและชื่อหลัก ใช้เพื่อจัดการการกำหนดค่าบันเดิลและการกำหนดค่าภายในเครื่องอย่างเหมาะสม

พารามิเตอร์
name String : ชื่อของ config

parentName String : ชื่อผู้ปกครองของ config

การส่งคืน
String ชื่อเต็มของการกำหนดค่า

ขว้าง
com.android.tradefed.config.ConfigurationException
ConfigurationException

isBundledConfig

protected boolean isBundledConfig (String name)

คืนค่าเป็นจริงหากเป็นไฟล์กำหนดค่าที่พบในคลาสพาธ

พารามิเตอร์
name String

การส่งคืน
boolean

isTrackableConfig

protected boolean isTrackableConfig (String name)

ควรติดตามวงจรชีวิตของการกำหนดค่าหรือไม่

พารามิเตอร์
name String : ชื่อของ config

การส่งคืน
boolean true หากติดตามการกำหนดค่าได้ ไม่เช่นนั้นจะ false

ติดตามการกำหนดค่า

protected void trackConfig (String name, 
                ConfigurationDef def)

ติดตามการกำหนดค่าสำหรับการโหลดแบบไดนามิก ขณะนี้รองรับเฉพาะไฟล์ในเครื่องเท่านั้น

พารามิเตอร์
name String : ชื่อของ config

def ConfigurationDef : def ของ config