ConfigurationFactory.ExceptionLoader

protected class ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader

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


סיכום

‫constructors ציבוריים

ExceptionLoader(boolean isGlobal)

‫methods ציבוריים

ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap)

boolean isBundledConfig(String name)

הפונקציה מחזירה את הערך True אם זהו קובץ תצורה שנמצא בתוך נתיב המחלקה.

void loadConfiguration(String name, ConfigurationDef def, String deviceTagObject, Map<String, String> templateMap, Set<String> templateSeen)
void loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, String deviceTagObject, Map<String, String> templateMap, Set<String> templateSeen)

ההגדרות שכלולות ב-tradefed.jar יכולות לכלול רק הגדרות אחרות שכלולות גם הן ב-tradefed.jar.

שיטות מוגנות

String findConfigName(String name, String parentName)

אפשר למצוא את השם של ההגדרה לפי השם שלה והשם של ההורה שלה.

boolean isTrackableConfig(String name)

האם לעקוב אחרי מחזור החיים של ההגדרה או לא.

void trackConfig(String name, ConfigurationDef def)

מעקב אחר הגדרות לטעינה דינמית.

‫constructors ציבוריים

ExceptionLoader

public ExceptionLoader (boolean isGlobal)

פרמטרים
isGlobal boolean

‫methods ציבוריים

getConfigurationDef

public ConfigurationDef getConfigurationDef (String name, 
                Map<String, String> templateMap)

פרמטרים
name String

templateMap Map

החזרות
ConfigurationDef

הקפצת הודעות שגיאה (throw)
ConfigurationException

isBundledConfig

public boolean isBundledConfig (String name)

הפונקציה מחזירה את הערך True אם זהו קובץ תצורה שנמצא בתוך נתיב המחלקה.

פרמטרים
name String

החזרות
boolean

loadConfiguration

public void loadConfiguration (String name, 
                ConfigurationDef def, 
                String deviceTagObject, 
                Map<String, String> templateMap, 
                Set<String> templateSeen)

פרמטרים
name String

def ConfigurationDef

deviceTagObject String

templateMap Map

templateSeen Set

הקפצת הודעות שגיאה (throw)
ConfigurationException

loadIncludedConfiguration

public void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                String deviceTagObject, 
                Map<String, String> templateMap, 
                Set<String> templateSeen)

ההגדרות שכלולות ב-tradefed.jar יכולות לכלול רק הגדרות אחרות שכלולות גם הן ב-tradefed.jar. עם זאת, הגדרות מקומיות (חיצוניות) יכולות לכלול הגדרות מקומיות (חיצוניות) והגדרות בחבילה.

פרמטרים
def ConfigurationDef

parentName String

name String

deviceTagObject String

templateMap Map

templateSeen Set

הקפצת הודעות שגיאה (throw)
ConfigurationException

שיטות מוגנות

findConfigName

protected String findConfigName (String name, 
                String parentName)

אפשר למצוא את השם של ההגדרה לפי השם שלה והשם של ההורה שלה. ההגדרה הזו משמשת לטיפול נכון בהגדרות של חבילות ובהגדרות מקומיות.

פרמטרים
name String: השם של ההגדרה

parentName String: שם ההורה של ההגדרה.

החזרות
String השם המלא של ההגדרה.

isTrackableConfig

protected boolean isTrackableConfig (String name)

האם לעקוב אחרי מחזור החיים של ההגדרה או לא.

פרמטרים
name String: השם של ההגדרה

החזרות
boolean true אם אפשר לעקוב אחרי ההגדרה, אחרת false.

trackConfig

protected void trackConfig (String name, 
                ConfigurationDef def)

מעקב אחר הגדרות לטעינה דינמית. בשלב הזה, יש תמיכה רק בקבצים מקומיים.

פרמטרים
name String: השם של ההגדרה

def ConfigurationDef: config's def.