KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > beans > factory > xml > MixedCollectionBean


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.springframework.beans.factory.xml;
18
19 import java.util.Collection JavaDoc;
20
21 /**
22  * Bean that exposes a simple property that can be set
23  * to a mix of references and individual values.
24  *
25  * @author Rod Johnson
26  * @since 27.05.2003
27  */

28 public class MixedCollectionBean {
29
30     protected static int nrOfInstances = 0;
31     
32     public static void resetStaticState() {
33         nrOfInstances = 0;
34     }
35
36     private Collection JavaDoc jumble;
37
38     public MixedCollectionBean() {
39         nrOfInstances++;
40     }
41
42     /**
43      * @return Collection
44      */

45     public Collection JavaDoc getJumble() {
46         return jumble;
47     }
48
49     /**
50      * Sets the jumble.
51      * @param jumble The jumble to set
52      */

53     public void setJumble(Collection JavaDoc jumble) {
54         this.jumble = jumble;
55     }
56
57 }
58
Popular Tags