KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > datatypes > processors > EmptyCommitProcessor


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.datatypes.processors;
11
12 import org.mmbase.bridge.*;
13
14 /**
15  * The CommitProcessor that does nothing.
16  *
17  * @author Michiel Meeuwissen
18  * @version $Id: EmptyCommitProcessor.java,v 1.2 2005/12/10 14:33:36 michiel Exp $
19  * @since MMBase-1.8
20  */

21
22 public final class EmptyCommitProcessor implements CommitProcessor {
23
24     private static final long serialVersionUID = 1L;
25
26     private static EmptyCommitProcessor instance = new EmptyCommitProcessor();
27
28     public static EmptyCommitProcessor getInstance() {
29         return instance;
30     }
31
32     public final void commit(Node node, Field field) {
33         return;
34     }
35
36     public String JavaDoc toString() {
37         return "EMPTY";
38     }
39 }
40
Popular Tags