View Javadoc

1   package net.sf.tacos.services;
2   
3   import org.apache.tapestry.ioc.Configuration;
4   import org.apache.tapestry.ioc.MappedConfiguration;
5   import org.apache.tapestry.services.LibraryMapping;
6   
7   /**
8    * The root module for Tacos.
9    * 
10   * @author Igor Drobiazko
11   *
12   */
13  public class TacosModule {
14      public static void contributeComponentClassResolver(Configuration<LibraryMapping> configuration){
15          configuration.add(new LibraryMapping("tacos", "net.sf.tacos"));
16      }
17      
18      public static void contributeFactoryDefaults(MappedConfiguration<String, String> configuration){
19      	configuration.add("tacos.path", "net/sf/tacos/");
20      	configuration.add("tacos", "classpath:${tacos.path}");
21      	configuration.add("tacos.datejs.path", "net/sf/tacos/datejs");
22      	configuration.add("tacos.datejs", "classpath:${tacos.datejs.path}");
23      }
24  }