01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package examples.connectivity;
08:
09: import org.codehaus.aspectwerkz.connectivity.RemoteProxy;
10:
11: /**
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public class Test1Impl implements Test1 {
15:
16: public String test1() {
17: return "test 1";
18: }
19:
20: public RemoteProxy getTest1() {
21: Test2 test2 = (Test2) new Target();
22: RemoteProxy proxy = RemoteProxy.createServerProxy(test2,
23: "localhost", 7777);
24: return proxy;
25: }
26: }
|