KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > examples > connectivity > Test1Impl


1 /**************************************************************************************
2  * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- *
5  * The software in this package is published under the terms of the LGPL license *
6  * a copy of which has been included with this distribution in the license.txt file. *
7  **************************************************************************************/

8 package examples.connectivity;
9
10 import org.codehaus.aspectwerkz.connectivity.RemoteProxy;
11
12 /**
13  * @author <a HREF="mailto:jboner@codehaus.org">Jonas BonŽr </a>
14  */

15 public class Test1Impl implements Test1 {
16
17     public String JavaDoc test1() {
18         return "test 1";
19     }
20
21     public RemoteProxy getTest1() {
22         Test2 test2 = (Test2) new Target();
23         RemoteProxy proxy = RemoteProxy.createServerProxy(test2, "localhost", 7777);
24         return proxy;
25     }
26 }
Popular Tags