KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > petite > test > Foo


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.petite.test;
4
5 import jodd.petite.meta.PetiteBean;
6
7 @PetiteBean
8 public class Foo {
9
10     public static int instanceCounter;
11
12     int counter;
13
14     public Foo() {
15         instanceCounter++;
16         counter = 0;
17     }
18
19     public int hello() {
20         return instanceCounter;
21     }
22
23
24     public int getCounter() {
25         return counter;
26     }
27 }
28
Popular Tags