KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > Bean


1 import proguard.annotation.*;
2
3 /**
4  * This bean illustrates the use of annotations for configuring ProGuard.
5  *
6  * After having been compiled, it can be processed using:
7  * java -jar proguard.jar @examples.pro
8  *
9  * The annotations will preserve the class and its public getters and setters.
10  */

11 @Keep
12 @KeepPublicGettersSetters
13 public class Bean
14 {
15     public boolean booleanProperty;
16     public int intProperty;
17     public String JavaDoc stringProperty;
18
19
20     public boolean isBooleanProperty()
21     {
22         return booleanProperty;
23     }
24
25
26     public void setBooleanProperty(boolean booleanProperty)
27     {
28         this.booleanProperty = booleanProperty;
29     }
30
31
32     public int getIntProperty()
33     {
34         return intProperty;
35     }
36
37
38     public void setIntProperty(int intProperty)
39     {
40         this.intProperty = intProperty;
41     }
42
43
44     public String JavaDoc getStringProperty()
45     {
46         return stringProperty;
47     }
48
49
50     public void setStringProperty(String JavaDoc stringProperty)
51     {
52         this.stringProperty = stringProperty;
53     }
54 }
55
Popular Tags