001    /*****************************************************************************
002     * Copyright (C) PicoContainer 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     * Original code by                                                          *
009     *****************************************************************************/
010    package org.picocontainer.defaults;
011    
012    import java.io.Serializable;
013    
014    /**
015     * @author Aslak Hellesøy
016     * @version $Revision: 940 $
017     */
018    public class SimpleReference implements ObjectReference, Serializable {
019        private Object instance;
020    
021        public Object get() {
022            return instance;
023        }
024    
025        public void set(Object item) {
026            this.instance = item;
027        }
028    }