comparison src/main/java/org/ssdt_ohio/devel/forms/services/QaModule.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>qa</code> ("quality assurance").
19 */
20 public class QaModule
21 {
22 public static void bind(ServiceBinder binder)
23 {
24 // Bind any services needed by the QA team to produce their reports
25 // binder.bind(MyServiceMonitorInterface.class, MyServiceMonitorImpl.class);
26 }
27
28
29 public static void contributeApplicationDefaults(
30 MappedConfiguration<String, Object> configuration)
31 {
32 // The factory default is true but during the early stages of an application
33 // overriding to false is a good idea. In addition, this is often overridden
34 // on the command line as -Dtapestry.production-mode=false
35 configuration.add(SymbolConstants.PRODUCTION_MODE, false);
36
37 // The application version number is incorprated into URLs for some
38 // assets. Web browsers will cache assets because of the far future expires
39 // header. If existing assets are changed, the version number should also
40 // change, to force the browser to download new versions.
41 configuration.add(SymbolConstants.APPLICATION_VERSION, "1.0-SNAPSHOT-QA");
42 }
43 }