de.jakop.lotus.domingo.monitor.NullMonitor Maven / Gradle / Ivy
/*
* This file is part of Domingo
* an Open Source Java-API to Lotus Notes/Domino
* originally hosted at http://domingo.sourceforge.net, now available
* at https://github.com/fjakop/domingo
*
* Copyright (c) 2003-2007 Beck et al. projects GmbH Munich, Germany (http://www.bea.de)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package de.jakop.lotus.domingo.monitor;
/**
* Null monitor, simply does nothing.
*
* @author Kurt Riede
*/
public final class NullMonitor extends AbstractDefaultMonitor {
/** Singleton instance of this passive null monitor. */
private static final NullMonitor INSTANCE = new NullMonitor();
/**
* Constructor.
*/
private NullMonitor() {
}
/**
* Returns a singleton instance of the null monitor.
*
* @return singleton instance of the null monitor
*/
public static NullMonitor getInstance() {
return INSTANCE;
}
/**
* Monitor a message.
*
* @param message the message
*/
protected void monitor(final String message) {
}
/**
* Monitor a throwable.
*
* @param throwable the throwable
*/
protected void monitor(final Throwable throwable) {
}
}