1 9 10 package org.nanocontainer.script.xml; 11 12 public class TestBean { 13 private int foo; 14 private String bar; 15 private String constructorCalled; 16 17 public TestBean() { 18 constructorCalled="default"; 19 } 20 21 public TestBean(String greedy) { 22 constructorCalled="greedy"; 23 } 24 25 public String getConstructorCalled() { 26 return constructorCalled; 27 } 28 public int getFoo() { 29 return foo; 30 } 31 32 public String getBar() { 33 return bar; 34 } 35 36 public void setFoo(int foo) { 37 this.foo = foo; 38 } 39 40 public void setBar(String bar) { 41 this.bar = bar; 42 } 43 } 44 | Popular Tags |