KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nanocontainer > testmodel > ThingThatTakesParamsInConstructor


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  * Original code by *
9  *****************************************************************************/

10 package org.nanocontainer.testmodel;
11
12 public class ThingThatTakesParamsInConstructor {
13     private String JavaDoc value;
14     private Integer JavaDoc intValue;
15
16     public ThingThatTakesParamsInConstructor(String JavaDoc value, Integer JavaDoc intValue) {
17         this.value = value;
18         this.intValue = intValue;
19     }
20
21     public String JavaDoc getValue() {
22         return value + intValue;
23     }
24 }
25
Popular Tags