From 0daa6e66908eb59332ee38b5bd2193ba40a7eb55 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 23 Mar 2009 08:34:33 +0000 Subject: Delete test trunk in sandbox git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@757347 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/HelloworldService.java | 25 ----------- .../main/java/sample/HelloworldServiceImpl.java | 28 ------------- .../src/main/java/sample/wicket/HomePage.html | 30 -------------- .../src/main/java/sample/wicket/HomePage.java | 48 ---------------------- .../src/main/java/sample/wicket/IMyService.java | 17 -------- .../src/main/java/sample/wicket/MyService.java | 20 --------- .../main/java/sample/wicket/WicketApplication.java | 29 ------------- 7 files changed, 197 deletions(-) delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldService.java delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java delete mode 100644 sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java (limited to 'sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java') diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldService.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldService.java deleted file mode 100644 index 123774b936..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldService.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package sample; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldServiceImpl.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldServiceImpl.java deleted file mode 100644 index 66cef71a25..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/HelloworldServiceImpl.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package sample; - - -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html deleted file mode 100644 index fd60771d20..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - Wicket Examples - guice - - - -

- This page uses Google Guice. - There is a service interface called IMyService, with an implementation POJO called MyService. - Guice is used to wire the implementation into the Page using an @Inject annotation. You can use this - annotation on the fields of any Component subclass. -

-

- The value of the Label component below will be updated with the return value from one of the service's methods when you click the link. -

-
-
- Value: Message goes here -
- To update the label above, click here. -
-
-

- The wicket-guice project will take care of proxying the injected beans so that your pages can be serialized safely. - To configure your application for Guice injection, see the javadoc for GuiceComponentInjector. -

- - - \ No newline at end of file diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java deleted file mode 100644 index 644d6add49..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/HomePage.java +++ /dev/null @@ -1,48 +0,0 @@ -package sample.wicket; - -import org.apache.wicket.markup.html.WebPage; -import org.apache.wicket.markup.html.basic.Label; -import org.apache.wicket.markup.html.link.Link; -import org.apache.wicket.model.AbstractReadOnlyModel; -import org.oasisopen.sca.annotation.Reference; - -/** - * Everybody's favorite example (Hello World), modified to use Guice. - * - * @author Alastair Maw - */ -public class HomePage extends WebPage -{ - @Reference - IMyService service; - - private String labelValue = ""; - - /** - * Constructor - */ - public HomePage() - { - add(new Link("link") - { - /** - * @see org.apache.wicket.markup.html.link.Link#onClick() - */ - @Override - public void onClick() - { - labelValue = service.getHelloWorldText(); - } - }); - add(new Label("message", new AbstractReadOnlyModel() - { - - @Override - public String getObject() - { - return labelValue; - } - - })); - } -} \ No newline at end of file diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java deleted file mode 100644 index 4b49225748..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/IMyService.java +++ /dev/null @@ -1,17 +0,0 @@ -package sample.wicket; - - -/** - * Service interface for a simple "Hello World" app. - * - * @author Alastair Maw - */ -public interface IMyService -{ - /** - * Retrieves the text to say "Hello World". - * - * @return "Hello World" - */ - public String getHelloWorldText(); -} \ No newline at end of file diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java deleted file mode 100644 index 05998ff74f..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/MyService.java +++ /dev/null @@ -1,20 +0,0 @@ -package sample.wicket; - - -/** - * Implementation of IService. - * - * @author Alastair Maw - */ -public class MyService implements IMyService -{ - - /** - * @see org.apache.wicket.examples.guice.service.IMyService#getHelloWorldText() - */ - public String getHelloWorldText() - { - return "Hello World"; - } - -} \ No newline at end of file diff --git a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java b/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java deleted file mode 100644 index 1d86f1ee39..0000000000 --- a/sandbox/ant/sca/trunk/samples/webapps/helloworld-wicket/src/main/java/sample/wicket/WicketApplication.java +++ /dev/null @@ -1,29 +0,0 @@ -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