KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > compliance > metadata > support > Trivial


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

7
8 package test.compliance.metadata.support;
9
10 public class Trivial implements TrivialMBean
11 {
12    private String something = null;
13    private boolean anAttribute = true;
14
15    public void setSomething(String thing)
16    {
17       this.something = thing;
18    }
19
20    public String getSomething()
21    {
22       return something;
23    }
24
25    public void setSomethingInvalid(String thing)
26    {
27       this.something = thing;
28    }
29    
30    public String getSomethingInvalid(Object invalid)
31    {
32       return something;
33    }
34    
35    public void setSomethingInvalid2(String thing)
36    {
37       this.something = thing;
38    }
39    
40    public void getSomethingInvalid2()
41    {
42       //return this.something;
43
}
44    
45    public void doOperation(String arg)
46    {
47    }
48 }
49
Popular Tags