Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
         
       
     
  
  
  
  
  
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
  
  
ConfigurationFactory.ExceptionLoader
  protected
  
  
  
  class
  ConfigurationFactory.ExceptionLoader
  
  
  
  
    extends ConfigurationFactory.ConfigLoader
  
  
  
  
  
  
  
    
Summary
| Public methods | 
|---|
  
  
  
    | 
        
        
        
        
        
        ConfigurationDef | 
      getConfigurationDef(String name,  templateMap)
      
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isBundledConfig(String name)
      Returns true if it is a config file found inside the classpath.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        void | 
      loadConfiguration(String name, ConfigurationDef def, String deviceTagObject,  templateMap,  templateSeen)
       | 
  
  
  
  
    | 
        
        
        
        
        
        void | 
      loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, String deviceTagObject,  templateMap,  templateSeen)
      Configs that are bundled inside the tradefed.jar can only include other configs also
 bundled inside tradefed.jar.
        
    
 | 
  
| Protected methods | 
|---|
  
  
  
    | 
        
        
        
        
        
        String | 
      findConfigName(String name, String parentName)
      Find config's name based on its name and its parent name.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isTrackableConfig(String name)
      Should track the config's life cycle or not.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        void | 
      trackConfig(String name, ConfigurationDef def)
      Track config for dynamic loading.
        
    
 | 
  
Public constructors
    ExceptionLoader
    
public ExceptionLoader (boolean isGlobal)
    
    
    
  
    
    | Parameters | 
|---|
      
        | isGlobal | boolean | 
    
 
Public methods
    getConfigurationDef
    
public ConfigurationDef getConfigurationDef (String name, 
                 templateMap)
    
    
    
  
    
    | Parameters | 
|---|
      
        | name | String | 
      
        | templateMap |  | 
    
    
      
  
 
    isBundledConfig
    
public boolean isBundledConfig (String name)
    
    
    
  Returns true if it is a config file found inside the classpath.
    
    
 
    loadConfiguration
    
public void loadConfiguration (String name, 
                ConfigurationDef def, 
                String deviceTagObject, 
                 templateMap, 
                 templateSeen)
    
    
    
  
    
    | Parameters | 
|---|
      
        | name | String | 
      
        | def | ConfigurationDef | 
      
        | deviceTagObject | String | 
      
        | templateMap |  | 
      
        | templateSeen |  | 
    
      
  
 
    loadIncludedConfiguration
    
public void loadIncludedConfiguration (ConfigurationDef def, 
                String parentName, 
                String name, 
                String deviceTagObject, 
                 templateMap, 
                 templateSeen)
    
    
    
  Configs that are bundled inside the tradefed.jar can only include other configs also
 bundled inside tradefed.jar. However, local (external) configs can include both local
 (external) and bundled configs.
    
    | Parameters | 
|---|
      
        | def | ConfigurationDef | 
      
        | parentName | String | 
      
        | name | String | 
      
        | deviceTagObject | String | 
      
        | templateMap |  | 
      
        | templateSeen |  | 
    
      
  
 
Protected methods
    findConfigName
    
protected String findConfigName (String name, 
                String parentName)
    
    
    
  Find config's name based on its name and its parent name. This is used to properly handle
 bundle configs and local configs.
    
    | Parameters | 
|---|
      
        | name | String: config's name | 
      
        | parentName | String: config's parent's name. | 
    
    
      | Returns | 
|---|
      
        | String | the config's full name. | 
    
 
    isTrackableConfig
    
protected boolean isTrackableConfig (String name)
    
    
    
  Should track the config's life cycle or not.
    
    | Parameters | 
|---|
      
        | name | String: config's name | 
    
    
      | Returns | 
|---|
      
        | boolean | trueif the config is trackable, otherwisefalse. | 
    
 
    trackConfig
    
protected void trackConfig (String name, 
                ConfigurationDef def)
    
    
    
  Track config for dynamic loading. Right now only local files are supported.
    
    | Parameters | 
|---|
      
        | name | String: config's name | 
      
        | def | ConfigurationDef: config's def. | 
    
 
 
 
  
  
 
  
    
    
      
    
    
  
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2023-03-08 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-03-08 UTC."],[],[]]