01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package jodd.petite.test;
04:
05: import jodd.petite.meta.PetiteBean;
06:
07: @PetiteBean
08: public class Foo {
09:
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: public int getCounter() {
24: return counter;
25: }
26: }
|