View Javadoc
1   /*
2    * Created on 19-Apr-2004
3    */
4   package ca.uhn.hl7v2.protocol.impl;
5   
6   import ca.uhn.hl7v2.protocol.SafeStorage;
7   import ca.uhn.hl7v2.protocol.Transportable;
8   
9   /**
10   * A non-functional implementation of <code>SafeStorage</code>.  This is 
11   * intended as a placeholder pending release of UHN's Simple Record Store
12   * project.   
13   * 
14   * @author <a href="mailto:bryan.tripp@uhn.on.ca">Bryan Tripp</a>
15   * @version $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:26 $ by $Author: jamesagnew $
16   */
17  public class NullSafeStorage implements SafeStorage {
18  
19      /** 
20       * Does nothing. 
21       */
22      public void store(Transportable theMessage) {
23      }
24  
25      /** 
26       * Does nothing. 
27       */
28      public void discard(Transportable theMessage) {
29       }
30  
31      /** 
32       * Returns an empty array. 
33       */
34      public Transportable[] restore() {
35          return new Transportable[0];
36      }
37  
38  }