KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > remoting > interceptor > TestTarget


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.remoting.interceptor;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * @author <a HREF="mailto:tom@jboss.org">Tom Elrod</a>
13  */

14 public class TestTarget implements TestTargetMBean, Serializable JavaDoc
15 {
16    private String JavaDoc internalTestValue = "foobar";
17
18    public boolean equals(Object JavaDoc testTarget)
19    {
20       if(testTarget instanceof TestTarget && getValue().equals(((TestTarget) testTarget).getValue()))
21       {
22          return true;
23       }
24       else
25       {
26          return false;
27       }
28    }
29
30    public String JavaDoc getValue()
31    {
32       return internalTestValue;
33    }
34
35
36 }
Popular Tags