KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > madvoc > SimpleConfig


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package madvoc;
4
5 import jodd.madvoc.config.MadvocConfig;
6 import jodd.madvoc.WebApplication;
7 import jodd.madvoc.ActionConfig;
8
9 /**
10  * Simple manual configuration.
11  */

12 public class SimpleConfig implements MadvocConfig {
13
14     public void configure(WebApplication webapp) {
15         System.out.println(">SimpleConfig.configure");
16
17         webapp.register(new ActionConfig("/incognito.html", IncognitoRequest.class, "hello", null));
18
19         webapp.setResultAlias("hello.all", "hi-all");
20     }
21 }
22
Popular Tags