comparison src/main/java/org/ssdt_ohio/devel/forms/services/DevelopmentModule.java @ 0:f4f8570d1c56

initial OTP form
author smith@nwoca.org
date Mon, 12 Nov 2012 16:29:11 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f4f8570d1c56
1 package org.ssdt_ohio.devel.forms.services;
2
3 import java.io.IOException;
4
5 import org.apache.tapestry5.*;
6 import org.apache.tapestry5.ioc.MappedConfiguration;
7 import org.apache.tapestry5.ioc.OrderedConfiguration;
8 import org.apache.tapestry5.ioc.ServiceBinder;
9 import org.apache.tapestry5.ioc.annotations.Local;
10 import org.apache.tapestry5.services.Request;
11 import org.apache.tapestry5.services.RequestFilter;
12 import org.apache.tapestry5.services.RequestHandler;
13 import org.apache.tapestry5.services.Response;
14 import org.slf4j.Logger;
15
16 /**
17 * This module is automatically included as part of the Tapestry IoC Registry if <em>tapestry.execution-mode</em>
18 * includes <code>development</code>.
19 */
20 public class DevelopmentModule
21 {
22 public static void contributeApplicationDefaults(
23 MappedConfiguration<String, Object> configuration)
24 {
25 // The factory default is true but during the early stages of an application
26 // overriding to false is a good idea. In addition, this is often overridden
27 // on the command line as -Dtapestry.production-mode=false
28 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
29
30 // The application version number is incorprated into URLs for some
31 // assets. Web browsers will cache assets because of the far future expires
32 // header. If existing assets are changed, the version number should also
33 // change, to force the browser to download new versions.
34 configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT-DEV");
35 }
36 }