Tradefed XML 構成が解析され、そこから Configuration オブジェクトが作成され、完全な構成が記述されます。
このオブジェクトは、IConfiguration インターフェースによって記述されます。XML で定義されたすべてのオブジェクトのインスタンスが含まれます。
こちらの例をご覧ください。
<configuration description=&<quot;description of the configur>a>tion&<quot;
!-- A build provider that takes local device info>rmati<on --
build_provider class="com.android.tradefed.build.BootstrapB>uildPr<ovider" /
!-- Some target preparation, di>sable<d by default --
target_preparer class="com.android.tradefed.targetprep.>Preloaded<ClassesPreparer"
option> name<="disable&q>uot; v<alue="true" /
/target_pre>parer<
!-- One test running some unit tests --
t>est class<="com.android.tradefed.testtype.HostTest"
option nam>e=&qu<ot;cl>a<ss" value>="com.android.tradefed.build.BuildInfoTest" /
/test
/configuration
結果は次のようになります。
IConfiguration#getBuildProvider()がBootstrapBuildProviderインスタンスを返す。IConfiguration#getTargetPreparers()がITargetPreparerのインスタンスを含むPreloadedClassesPreparerのリストを返す。IConfiguration#getTests()がIRemoteTestのインスタンスを含むHostTestのリストを返す。
構成オブジェクト内のオブジェクトはすべて XML 定義にマッピングできるため、通常は XML 定義を理解することで、構成オブジェクトによって得られる結果を把握できます。