ConfigurationFactory.ExceptionLoaderConfigurationFactory.ExceptionLoader
protected class ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader
Résumé
Méthodes publiques |
---|
ConfigurationDef | getConfigurationDef (String name, templateMap) getConfigurationDef (String name, templateMap) |
boolean | isBundledConfig (String name) Renvoie vrai s'il s'agit d'un fichier de configuration trouvé dans le chemin de classe. |
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) Les configurations regroupées dans tradefed.jar ne peuvent inclure que d'autres configurations également regroupées dans tradefed.jar. |
Méthodes protégées |
---|
String | findConfigName (String name, String parentName) Recherchez le nom de la configuration en fonction de son nom et de son nom parent. |
boolean | isTrackableConfig (String name) Doit suivre le cycle de vie de la configuration ou non. |
void | trackConfig (String name, ConfigurationDef def) Suivre la configuration pour le chargement dynamique. |
Constructeurs publics
ExceptionLoader
public ExceptionLoader (boolean isGlobal)
Paramètres |
---|
isGlobal | boolean |
Méthodes publiques
getConfigurationDef
public ConfigurationDef getConfigurationDef (String name,
templateMap)
Paramètres |
---|
name | String |
templateMap | |
isBundledConfig
public boolean isBundledConfig (String name)
Renvoie vrai s'il s'agit d'un fichier de configuration trouvé dans le chemin de classe.
chargerConfiguration
public void loadConfiguration (String name,
ConfigurationDef def,
String deviceTagObject,
templateMap,
templateSeen)
Paramètres |
---|
name | String |
def | ConfigurationDef |
deviceTagObject | String |
templateMap | |
templateSeen | |
chargeConfigurationincluse
public void loadIncludedConfiguration (ConfigurationDef def,
String parentName,
String name,
String deviceTagObject,
templateMap,
templateSeen)
Les configurations regroupées dans tradefed.jar ne peuvent inclure que d'autres configurations également regroupées dans tradefed.jar. Cependant, les configurations locales (externes) peuvent inclure à la fois des configurations locales (externes) et groupées.
Paramètres |
---|
def | ConfigurationDef |
parentName | String |
name | String |
deviceTagObject | String |
templateMap | |
templateSeen | |
Méthodes protégées
findConfigName
protected String findConfigName (String name,
String parentName)
Recherchez le nom de la configuration en fonction de son nom et de son nom parent. Ceci est utilisé pour gérer correctement les configurations de bundle et les configurations locales.
Paramètres |
---|
name | String : nom de la configuration |
parentName | String : nom du parent de la configuration. |
Retour |
---|
String | le nom complet de la configuration. |
estTraçableConfig
protected boolean isTrackableConfig (String name)
Doit suivre le cycle de vie de la configuration ou non.
Paramètres |
---|
name | String : nom de la configuration |
Retour |
---|
boolean | true si la configuration est traçable, sinon false . |
trackConfig
protected void trackConfig (String name,
ConfigurationDef def)
Suivre la configuration pour le chargement dynamique. Pour le moment, seuls les fichiers locaux sont pris en charge.
Paramètres |
---|
name | String : nom de la configuration |
def | ConfigurationDef : définition de la configuration. |