Tradefed XML yapılandırması ayrıştırılır ve yapılandırmanın tamamını açıklayan bir Configuration nesnesi oluşturulur.
Nesne, IConfiguration arayüzü ile tanımlanır.XML'de tanımlanan tüm nesnelerin bir örneğini içerir.
Bu örnekte:
<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
Bu durumda sonuç şöyle olur:
IConfiguration#getBuildProvider(),BootstrapBuildProviderörneğini döndürür.IConfiguration#getTargetPreparers(),PreloadedClassesPreparerörneğini içerenITargetPreparerlistesini döndürür.IConfiguration#getTests(),HostTestörneğini içerenIRemoteTestlistesini döndürmek için kullanılır.
Yapılandırma nesnesindeki her bir nesne XML tanımına eşlenebilir. Bu nedenle, XML tanımını anlamak genellikle yapılandırma nesnesinden ne bekleneceğini anlamaya yardımcı olur.