summaryrefslogtreecommitdiffstats
path: root/sandbox/ant/sca/branches/tb3/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java
blob: 1d86f1ee39c953e687ffff2f0f3ab0e1a409972a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package sample.wicket;

import org.apache.wicket.Page;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.tuscany.sca.wicket.TuscanyComponentInjector;;

/**
 * Application object for your web application. If you want to run this application without deploying, run the Start class.
 * 
 * @see com.mycompany.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{    

    @Override
    protected void init()
    {
        addComponentInstantiationListener(new TuscanyComponentInjector(this));
    }

    /**
     * @see org.apache.wicket.Application#getHomePage()
     */
    @Override
    public Class< ? extends Page> getHomePage()
    {
        return HomePage.class;
    }
}