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.ConfigLoader
  protected
  
  
  
  class
  ConfigurationFactory.ConfigLoader
  
    extends Object
  
  
  
  
  
  
  
    
    | java.lang.Object | 
  
  
    
      | ↳ | com.android.tradefed.config.ConfigurationFactory.ConfigLoader | 
  
  
  
  
    
  Implementation of IConfigDefLoader that tracks the included configurations from one
 root config, and throws an exception on circular includes.
Summary
| Protected methods | 
|---|
  
  
  
    | 
        
        
        
        
        
        String | 
      findConfigName(String name, String parentName)
      Find config's name based on its name and its parent name.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        boolean | 
      isBundledConfig(String name)
      Returns true if it is a config file found inside the classpath.
        
    
 | 
  
  
  
  
    | 
        
        
        
        
        
        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
    ConfigLoader
    
public ConfigLoader (boolean isGlobalConfig)
    
    
    
  
    
    | Parameters | 
|---|
      
        | isGlobalConfig | boolean | 
    
 
Public methods
    getConfigurationDef
    
public ConfigurationDef getConfigurationDef (String name, 
                 templateMap)
    
    
    
  
    
    | Parameters | 
|---|
      
        | name | String | 
      
        | templateMap |  | 
    
    
      
  
 
    isGlobalConfig
    
public boolean isGlobalConfig ()
    
    
    
  
    
 
    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. | 
    
      
  
 
    isBundledConfig
    
protected boolean isBundledConfig (String name)
    
    
    
  Returns true if it is a config file found inside the classpath.
    
    
 
    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-07-19 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-07-19 UTC."],[],[]]