001 /***************************************************************************** 002 * Copyright (C) NanoContainer Organization. All rights reserved. * 003 * ------------------------------------------------------------------------- * 004 * The software in this package is published under the terms of the BSD * 005 * style license a copy of which has been included with this distribution in * 006 * the LICENSE.txt file. * 007 * * 008 *****************************************************************************/ 009 010 package org.nanocontainer.script.xml; 011 012 public class TestBean { 013 private int foo; 014 private String bar; 015 private String constructorCalled; 016 017 public TestBean() { 018 constructorCalled="default"; 019 } 020 021 public TestBean(String greedy) { 022 constructorCalled="greedy"; 023 } 024 025 public String getConstructorCalled() { 026 return constructorCalled; 027 } 028 public int getFoo() { 029 return foo; 030 } 031 032 public String getBar() { 033 return bar; 034 } 035 036 public void setFoo(int foo) { 037 this.foo = foo; 038 } 039 040 public void setBar(String bar) { 041 this.bar = bar; 042 } 043 }