// Path: src/main/java/de/onyxbits/tradetrax/main/AppConstants.java
// public class AppConstants {
// 
// 	/**
// 	 * The human readable version name without any prefixes (e.g. "v") or suffixes
// 	 * (e.g. "-SNAPSHOT-DEV")
// 	 */
// 	public static final String VERSION;
// 
// 	/**
// 	 * Init Parameter Name "Ledger": the parameter name by which to configure the
// 	 * ledger path in web.xml
// 	 */
// 	public static final String IPNLEDGERPATH = "ledger";
// 
// 	static {
// 		String tmp = "UNKNOWN";
// 		try {
// 			// TODO: Ideally this would somehow come from pom.xml, but there doesn't
// 			// seem to be a good way to transport it from there that works for the JAR
// 			// as well as the WAR version.
// 			tmp = "1.6";
// 		}
// 		catch (Exception e) {
// 		}
// 		VERSION = tmp;
// 	}
// }


import org.apache.tapestry5.*;
import org.apache.tapestry5.ioc.MappedConfiguration;
import de.onyxbits.tradetrax.main.AppConstants;
package de.onyxbits.tradetrax.services;



/**
 * This module is automatically included as part of the Tapestry IoC Registry if
 * <em>tapestry.execution-mode</em> includes <code>development</code>.
 */
public class DevelopmentModule {
	public static void contributeApplicationDefaults(MappedConfiguration<String, Object> configuration) {
		// The factory default is true but during the early stages of an application
		// overriding to false is a good idea. In addition, this is often overridden
		// on the command line as -Dtapestry.production-mode=false
		configuration.add(SymbolConstants.PRODUCTION_MODE, false);

		// The application version number is incorprated into URLs for some
		// assets. Web browsers will cache assets because of the far future expires
		// header. If existing assets are changed, the version number should also
		// change, to force the browser to download new versions.
// Path: src/main/java/de/onyxbits/tradetrax/main/AppConstants.java
// public class AppConstants {
// 
// 	/**
// 	 * The human readable version name without any prefixes (e.g. "v") or suffixes
// 	 * (e.g. "-SNAPSHOT-DEV")
// 	 */
// 	public static final String VERSION;
// 
// 	/**
// 	 * Init Parameter Name "Ledger": the parameter name by which to configure the
// 	 * ledger path in web.xml
// 	 */
// 	public static final String IPNLEDGERPATH = "ledger";
// 
// 	static {
// 		String tmp = "UNKNOWN";
// 		try {
// 			// TODO: Ideally this would somehow come from pom.xml, but there doesn't
// 			// seem to be a good way to transport it from there that works for the JAR
// 			// as well as the WAR version.
// 			tmp = "1.6";
// 		}
// 		catch (Exception e) {
// 		}
// 		VERSION = tmp;
// 	}
// }


// Path: src/main/java/de/onyxbits/tradetrax/services/DevelopmentModule.java
import org.apache.tapestry5.*;
import org.apache.tapestry5.ioc.MappedConfiguration;
import de.onyxbits.tradetrax.main.AppConstants;

package de.onyxbits.tradetrax.services;



/**
 * This module is automatically included as part of the Tapestry IoC Registry if
 * <em>tapestry.execution-mode</em> includes <code>development</code>.
 */
public class DevelopmentModule {
	public static void contributeApplicationDefaults(MappedConfiguration<String, Object> configuration) {
		// The factory default is true but during the early stages of an application
		// overriding to false is a good idea. In addition, this is often overridden
		// on the command line as -Dtapestry.production-mode=false
		configuration.add(SymbolConstants.PRODUCTION_MODE, false);

		// The application version number is incorprated into URLs for some
		// assets. Web browsers will cache assets because of the far future expires
		// header. If existing assets are changed, the version number should also
		// change, to force the browser to download new versions.
		configuration.add(SymbolConstants.APPLICATION_VERSION, "v"+AppConstants.VERSION + "-SNAPSHOT-DEV");