1 package ru
.rentdom
.services
;
3 import net
.aramzamzam
.commons
.pagesbehavoir
.services
.PagesBehavoirModule
;
5 import org
.apache
.tapestry5
.SymbolConstants
;
6 import org
.apache
.tapestry5
.ioc
.MappedConfiguration
;
7 import org
.apache
.tapestry5
.ioc
.ServiceBinder
;
8 import org
.apache
.tapestry5
.ioc
.annotations
.SubModule
;
10 import ru
.rentdom
.services
.security
.SecurityModule
;
11 import ru
.rentdom
.services
.user
.UserModule
;
14 * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to
15 * configure and extend Tapestry, or to place your own service definitions.
19 PagesBehavoirModule
.class,
24 public class AppModule
26 public static void bind(ServiceBinder binder
)
28 // binder.bind(MyServiceInterface.class, MyServiceImpl.class);
30 // Make bind() calls on the binder object to define most IoC services.
31 // Use service builder methods (example below) when the implementation
32 // is provided inline, or requires more initialization than simply
33 // invoking the constructor.
37 public static void contributeApplicationDefaults(
38 MappedConfiguration
<String
, String
> configuration
)
40 // Contributions to ApplicationDefaults will override any contributions to
41 // FactoryDefaults (with the same key). Here we're restricting the supported
42 // locales to just "en" (English). As you add localised message catalogs and other assets,
43 // you can extend this list of locales (it's a comma separated series of locale names;
44 // the first locale name is the default when there's no reasonable match).
46 configuration
.add(SymbolConstants
.SUPPORTED_LOCALES
, "ru");
48 // The factory default is true but during the early stages of an application
49 // overriding to false is a good idea. In addition, this is often overridden
50 // on the command line as -Dtapestry.production-mode=false
51 configuration
.add(SymbolConstants
.PRODUCTION_MODE
, "false");