* @see org.jboss.arquillian.impl.ConfigurationBuilder#build()
*/
public Configuration build() throws ConfigurationException
{
// the configuration object we are going to return
Configuration configuration = new Configuration();
Collection<ContainerConfiguration> containersConfigurations = serviceLoader.all(ContainerConfiguration.class);
log.fine("Container Configurations: " + containersConfigurations.size());
for(ContainerConfiguration containerConfiguration : containersConfigurations)
{
configuration.addContainerConfig(containerConfiguration);
}
Collection<ExtensionConfiguration> extensionsConfigurations = serviceLoader.all(ExtensionConfiguration.class);
log.fine("Extension Configurations: " + containersConfigurations.size());
for(ExtensionConfiguration extensionConfiguration : extensionsConfigurations)
{
configuration.addExtensionConfig(extensionConfiguration);
}
try
{
Document arquillianConfiguration = loadArquillianConfiguration(resourcePath);