ConfigurationFactory.ExceptionLoader

protected class ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader

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


סיכום

בנאים ציבוריים

ExceptionLoader (boolean isGlobal)

שיטות ציבוריות

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

boolean isBundledConfig (String name)

מחזירה true אם מדובר בקובץ תצורה שנמצא בתוך ה-classpath.

void loadConfiguration (String name, ConfigurationDef def, String deviceTagObject, templateMap, templateSeen) loadConfiguration (String name, ConfigurationDef def, String deviceTagObject, templateMap, templateSeen) loadConfiguration (String name, ConfigurationDef def, String deviceTagObject, templateMap, templateSeen)
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 isTrackableConfig (String name)

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

void trackConfig (String name, ConfigurationDef def)

תצורת מעקב לטעינה דינמית.

בנאים ציבוריים

ExceptionLoader

public ExceptionLoader (boolean isGlobal)

פרמטרים
isGlobal boolean

שיטות ציבוריות

getConfigurationDef

public ConfigurationDef getConfigurationDef (String name, 
                 templateMap)

פרמטרים
name String

templateMap

החזרות
ConfigurationDef

זורק
ConfigurationException

isBundledConfig

public boolean isBundledConfig (String name)

מחזירה true אם מדובר בקובץ תצורה שנמצא בתוך ה-classpath.

פרמטרים
name String

החזרות
boolean

loadConfiguration

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

פרמטרים
name String

def ConfigurationDef

deviceTagObject String

templateMap

templateSeen

זורק
ConfigurationException

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)

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

פרמטרים
name String : שם התצורה

parentName String : שם האב של config.

החזרות
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.