// 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 java.io.IOException;
import org.apache.tapestry5.*;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.ServiceBinder;
import org.apache.tapestry5.ioc.annotations.Local;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.RequestFilter;
import org.apache.tapestry5.services.RequestHandler;
import org.apache.tapestry5.services.Response;
import org.slf4j.Logger;
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>qa</code> ("quality assurance").
 */
public class QaModule
{
    public static void bind(ServiceBinder binder)
    {
        // Bind any services needed by the QA team to produce their reports
        // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class);
    }


    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/QaModule.java
import java.io.IOException;
import org.apache.tapestry5.*;
import org.apache.tapestry5.ioc.MappedConfiguration;
import org.apache.tapestry5.ioc.OrderedConfiguration;
import org.apache.tapestry5.ioc.ServiceBinder;
import org.apache.tapestry5.ioc.annotations.Local;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.RequestFilter;
import org.apache.tapestry5.services.RequestHandler;
import org.apache.tapestry5.services.Response;
import org.slf4j.Logger;
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>qa</code> ("quality assurance").
 */
public class QaModule
{
    public static void bind(ServiceBinder binder)
    {
        // Bind any services needed by the QA team to produce their reports
        // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class);
    }


    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-QA");