ConfigurationFactory.ExceptionLoader
protected class ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader
Zusammenfassung
Öffentliche Methoden |
---|
ConfigurationDef | getConfigurationDef (String name, templateMap) getConfigurationDef (String name, templateMap) |
boolean | isBundledConfig (String name) Gibt „true“ zurück, wenn es sich um eine im Klassenpfad gefundene Konfigurationsdatei handelt. |
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) Konfigurationen, die in tradefed.jar gebündelt sind, können nur andere Konfigurationen enthalten, die ebenfalls in tradefed.jar gebündelt sind. |
Geschützte Methoden |
---|
String | findConfigName (String name, String parentName) Finden Sie den Namen der Konfiguration basierend auf ihrem Namen und ihrem übergeordneten Namen. |
boolean | isTrackableConfig (String name) Sollte den Lebenszyklus der Konfiguration verfolgen oder nicht. |
void | trackConfig (String name, ConfigurationDef def) Verfolgen Sie die Konfiguration für dynamisches Laden. |
Öffentliche Konstrukteure
AusnahmeLoader
public ExceptionLoader (boolean isGlobal)
Parameter |
---|
isGlobal | boolean |
Öffentliche Methoden
getConfigurationDef
public ConfigurationDef getConfigurationDef (String name,
templateMap)
Parameter |
---|
name | String |
templateMap | |
isBundledConfig
public boolean isBundledConfig (String name)
Gibt „true“ zurück, wenn es sich um eine im Klassenpfad gefundene Konfigurationsdatei handelt.
Konfiguration laden
public void loadConfiguration (String name,
ConfigurationDef def,
String deviceTagObject,
templateMap,
templateSeen)
Parameter |
---|
name | String |
def | ConfigurationDef |
deviceTagObject | String |
templateMap | |
templateSeen | |
loadIncludedConfiguration
public void loadIncludedConfiguration (ConfigurationDef def,
String parentName,
String name,
String deviceTagObject,
templateMap,
templateSeen)
Konfigurationen, die in tradefed.jar gebündelt sind, können nur andere Konfigurationen enthalten, die ebenfalls in tradefed.jar gebündelt sind. Lokale (externe) Konfigurationen können jedoch sowohl lokale (externe) als auch gebündelte Konfigurationen enthalten.
Parameter |
---|
def | ConfigurationDef |
parentName | String |
name | String |
deviceTagObject | String |
templateMap | |
templateSeen | |
Geschützte Methoden
findConfigName
protected String findConfigName (String name,
String parentName)
Finden Sie den Namen der Konfiguration basierend auf ihrem Namen und ihrem übergeordneten Namen. Dies wird verwendet, um Bundle-Konfigurationen und lokale Konfigurationen richtig zu handhaben.
Parameter |
---|
name | String : Name der Konfiguration |
parentName | String : Name der übergeordneten Konfiguration. |
Kehrt zurück |
---|
String | der vollständige Name der Konfiguration. |
isTrackableConfig
protected boolean isTrackableConfig (String name)
Sollte den Lebenszyklus der Konfiguration verfolgen oder nicht.
Parameter |
---|
name | String : Name der Konfiguration |
Kehrt zurück |
---|
boolean | true , wenn die Konfiguration verfolgbar ist, andernfalls false . |
trackConfig
protected void trackConfig (String name,
ConfigurationDef def)
Verfolgen Sie die Konfiguration für dynamisches Laden. Derzeit werden nur lokale Dateien unterstützt.
Parameter |
---|
name | String : Name der Konfiguration |
def | ConfigurationDef : Konfigurationsdef. |