使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
ConfigurationFactory.ExceptionLoader
protected
class
ConfigurationFactory.ExceptionLoader
extends ConfigurationFactory.ConfigLoader
摘要
公共方法 |
ConfigurationDef
|
getConfigurationDef(String name, templateMap)
|
boolean
|
isBundledConfig(String name)
如果是在类路径中找到的配置文件,则返回 true。
|
void
|
loadConfiguration(String name, ConfigurationDef def, String deviceTagObject, templateMap, templateSeen)
|
void
|
loadIncludedConfiguration(ConfigurationDef def, String parentName, String name, String deviceTagObject, templateMap, templateSeen)
在 tradefed.jar 中捆绑的配置只能包含也捆绑在 tradefed.jar 中的其他配置。
|
公共构造函数
ExceptionLoader
public ExceptionLoader (boolean isGlobal)
公共方法
getConfigurationDef
public ConfigurationDef getConfigurationDef (String name,
templateMap)
参数 |
name |
String |
templateMap |
|
isBundledConfig
public boolean isBundledConfig (String name)
如果是类路径中找到的配置文件,则返回 true。
loadConfiguration
public void loadConfiguration (String name,
ConfigurationDef def,
String deviceTagObject,
templateMap,
templateSeen)
参数 |
name |
String |
def |
ConfigurationDef |
deviceTagObject |
String |
templateMap |
|
templateSeen |
|
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 |
|
受保护的方法
findConfigName
protected String findConfigName (String name,
String parentName)
根据配置的名称和父级名称查找配置的名称。这用于正确处理软件包配置和本地配置。
参数 |
name |
String :配置的名称 |
parentName |
String :配置的父级名称。 |
isTrackableConfig
protected boolean isTrackableConfig (String name)
是否应跟踪配置的生命周期。
返回 |
boolean |
如果配置可跟踪,则为 true ;否则为 false 。 |
trackConfig
protected void trackConfig (String name,
ConfigurationDef def)
跟踪动态加载的配置。目前仅支持本地文件。
参数 |
name |
String :配置的名称 |
def |
ConfigurationDef :配置的定义。 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-23。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-11-23。"],[],[]]