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)

boolean isGlobalConfig()

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

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

วิธีการที่มีการป้องกัน

String findConfigName(String name, String parentName)

ค้นหาชื่อของ config ตามชื่อและชื่อของรายการหลัก

boolean isBundledConfig(String name)

แสดงผลเป็น "จริง" หากเป็นไฟล์การกําหนดค่าที่พบใน classpath

boolean isTrackableConfig(String name)

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

void trackConfig(String name, ConfigurationDef def)

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

ตัวสร้างแบบสาธารณะ

ConfigLoader

public ConfigLoader (boolean isGlobalConfig)

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

เมธอดสาธารณะ

getConfigurationDef

public ConfigurationDef getConfigurationDef (String name, 
                 templateMap)

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

templateMap

คิกรีเทิร์น
ConfigurationDef

การโยน
ConfigurationException

isGlobalConfig

public boolean isGlobalConfig ()

คิกรีเทิร์น
boolean

loadIncludedConfiguration

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

วิธีการที่มีการป้องกัน

findConfigName

protected String findConfigName (String name, 
                String parentName)

ค้นหาชื่อของ config ตามชื่อและชื่อของรายการหลัก ซึ่งจะใช้เพื่อจัดการการกําหนดค่ากลุ่มและการกำหนดค่าในเครื่องอย่างเหมาะสม

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

parentName String: ชื่อของรายการหลักของ config

คิกรีเทิร์น
String ชื่อเต็มของการกำหนดค่า

การโยน
com.android.tradefed.config.ConfigurationException
ConfigurationException

isBundledConfig

protected boolean isBundledConfig (String name)

แสดงผลเป็น "จริง" หากเป็นไฟล์การกําหนดค่าที่พบใน classpath

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

คิกรีเทิร์น
boolean

isTrackableConfig

protected boolean isTrackableConfig (String name)

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

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

คิกรีเทิร์น
boolean true หากติดตามการกําหนดค่าได้ ไม่เช่นนั้นจะเป็น false

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

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

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

def ConfigurationDef: def ของ config