FileDocCategorySizeDatePackage
AdditionalXmlConfigurationExample.javaAPI DocExample1693Wed May 18 09:39:00 BST 2005com.discursive.jccook.configuration

AdditionalXmlConfigurationExample

public class AdditionalXmlConfigurationExample extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		AdditionalXmlConfigurationExample example = new AdditionalXmlConfigurationExample();

		ConfigurationFactory factory = new ConfigurationFactory();
		URL configURL = example.getClass().getResource("additional-xml-configuration.xml");
		factory.setConfigurationURL( configURL );
		
		Configuration config = factory.getConfiguration();
		
		List startCriteria = config.getList("start-criteria.criteria");
		System.out.println( "Start Criteria: " + startCriteria );
		
		int horsepower = config.getInt("horsepower");
		System.out.println( "Horsepower: " + horsepower );