KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > xml > mbeanserver > interceptors > SomeBeanInterceptor


1 package org.jboss.test.xml.mbeanserver.interceptors;
2
3 import org.jboss.mx.interceptor.AbstractInterceptor;
4
5 import java.net.InetAddress JavaDoc;
6 import java.net.URL JavaDoc;
7 import java.util.Properties JavaDoc;
8
9 /**
10  * A test mbean interceptor whose fields are initialized by the element
11  * attributes and property editor string to object conversion.
12  *
13  * @author Scott.Stark@jboss.org
14  * @version $Revision: 42134 $
15  */

16 public class SomeBeanInterceptor extends AbstractInterceptor
17 {
18    private boolean flag;
19    private int anInt;
20    private Long JavaDoc aLong;
21    private String JavaDoc aString;
22    private String JavaDoc[] someStrings;
23    private InetAddress JavaDoc address;
24    private URL JavaDoc homePage;
25    private Class JavaDoc aClass;
26    private Properties JavaDoc someProperties;
27
28    public boolean isFlag()
29    {
30       return flag;
31    }
32
33    public void setFlag(boolean flag)
34    {
35       this.flag = flag;
36    }
37
38    public int getAnInt()
39    {
40       return anInt;
41    }
42
43    public void setAnInt(int anInt)
44    {
45       this.anInt = anInt;
46    }
47
48    public Long JavaDoc getaLong()
49    {
50       return aLong;
51    }
52
53    public void setaLong(Long JavaDoc aLong)
54    {
55       this.aLong = aLong;
56    }
57
58    public String JavaDoc getaString()
59    {
60       return aString;
61    }
62
63    public void setaString(String JavaDoc aString)
64    {
65       this.aString = aString;
66    }
67
68    public String JavaDoc[] getSomeStrings()
69    {
70       return someStrings;
71    }
72
73    public void setSomeStrings(String JavaDoc[] someStrings)
74    {
75       this.someStrings = someStrings;
76    }
77
78    public InetAddress JavaDoc getAddress()
79    {
80       return address;
81    }
82
83    public void setAddress(InetAddress JavaDoc address)
84    {
85       this.address = address;
86    }
87
88    public URL JavaDoc getHomePage()
89    {
90       return homePage;
91    }
92
93    public void setHomePage(URL JavaDoc homePage)
94    {
95       this.homePage = homePage;
96    }
97
98    public Class JavaDoc getaClass()
99    {
100       return aClass;
101    }
102
103    public void setaClass(Class JavaDoc aClass)
104    {
105       this.aClass = aClass;
106    }
107
108    public Properties JavaDoc getSomeProperties()
109    {
110       return someProperties;
111    }
112
113    public void setSomeProperties(Properties JavaDoc someProperties)
114    {
115       this.someProperties = someProperties;
116    }
117 }
118
Popular Tags