public static CitrusConfiguration from ( Properties extensionProperties ) { CitrusConfiguration configuration = new CitrusConfiguration ( extensionProperties ) ; configuration . setCitrusVersion ( getProperty ( extensionProperties , "citrusVersion" ) ) ; if ( extensionProperties . containsKey ( "autoPackage" ) ) { configuration . setAutoPackage ( Boolean . valueOf ( getProperty ( extensionProperties , "autoPackage" ) ) ) ; } if ( extensionProperties . containsKey ( "suiteName" ) ) { configuration . setSuiteName ( getProperty ( extensionProperties , "suiteName" ) ) ; } if ( extensionProperties . containsKey ( "configurationClass" ) ) { String configurationClass = getProperty ( extensionProperties , "configurationClass" ) ; try { Class < ? > configType = Class . forName ( configurationClass ) ; if ( CitrusSpringConfig . class . isAssignableFrom ( configType ) ) { configuration . setConfigurationClass ( ( Class < ? extends CitrusSpringConfig > ) configType ) ; } else { log . warn ( String . format ( "Found invalid Citrus configuration class: %s, must be a subclass of %s" , configurationClass , CitrusSpringConfig . class ) ) ; } } catch ( ClassNotFoundException e ) { log . warn ( String . format ( "Unable to access Citrus configuration class: %s" , configurationClass ) , e ) ; } } log . debug ( String . format ( "Using Citrus configuration:%n%s" , configuration . toString ( ) ) ) ; return configuration ; }
Constructs Citrus configuration instance from given property set .