001/*
002 * Created on 19-Apr-2004
003 */
004package ca.uhn.hl7v2.protocol.impl;
005
006import ca.uhn.hl7v2.protocol.SafeStorage;
007import ca.uhn.hl7v2.protocol.Transportable;
008
009/**
010 * A non-functional implementation of <code>SafeStorage</code>.  This is 
011 * intended as a placeholder pending release of UHN's Simple Record Store
012 * project.   
013 * 
014 * @author <a href="mailto:bryan.tripp@uhn.on.ca">Bryan Tripp</a>
015 * @version $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
016 */
017public class NullSafeStorage implements SafeStorage {
018
019    /** 
020     * Does nothing. 
021     */
022    public void store(Transportable theMessage) {
023    }
024
025    /** 
026     * Does nothing. 
027     */
028    public void discard(Transportable theMessage) {
029     }
030
031    /** 
032     * Returns an empty array. 
033     */
034    public Transportable[] restore() {
035        return new Transportable[0];
036    }
037
038}