KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > script > xml > TestBean


1 /*****************************************************************************
2  * Copyright (C) NanoContainer Organization. All rights reserved. *
3  * ------------------------------------------------------------------------- *
4  * The software in this package is published under the terms of the BSD *
5  * style license a copy of which has been included with this distribution in *
6  * the LICENSE.txt file. *
7  * *
8  *****************************************************************************/

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