KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > picocontainer > defaults > SimpleReference


1 /*****************************************************************************
2  * Copyright (C) PicoContainer 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.picocontainer.defaults;
11
12 import java.io.Serializable JavaDoc;
13
14 /**
15  * @author Aslak Hellesøy
16  * @version $Revision: 940 $
17  */

18 public class SimpleReference implements ObjectReference, Serializable JavaDoc {
19     private Object JavaDoc instance;
20
21     public Object JavaDoc get() {
22         return instance;
23     }
24
25     public void set(Object JavaDoc item) {
26         this.instance = item;
27     }
28 }
29
Popular Tags