From c8b4f9e260892c8fedbf8bce7c14cf4c1f269210 Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 17 Mar 2009 12:34:57 +0000 Subject: [maven-release-plugin] copy for branch foo git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@755220 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/sample/wicket/WicketApplication.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sandbox/ant/sca/branches/foo/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java (limited to 'sandbox/ant/sca/branches/foo/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java') diff --git a/sandbox/ant/sca/branches/foo/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java b/sandbox/ant/sca/branches/foo/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java new file mode 100644 index 0000000000..1d86f1ee39 --- /dev/null +++ b/sandbox/ant/sca/branches/foo/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java @@ -0,0 +1,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; + } +} \ No newline at end of file -- cgit v1.2.3