| 1 | /* |
| 2 | * Copyright 2005-2006 The RbUtils Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | * |
| 16 | */ |
| 17 | |
| 18 | // $Id$ |
| 19 | |
| 20 | package org.ktc.rbutils.api.audit; |
| 21 | |
| 22 | import org.ktc.rbutils.api.audit.event.ProcessEndEvent; |
| 23 | import org.ktc.rbutils.api.audit.event.ProcessEvent; |
| 24 | import org.ktc.rbutils.api.audit.event.ProcessFileEndEvent; |
| 25 | import org.ktc.rbutils.api.audit.event.ProcessFileStartEvent; |
| 26 | import org.ktc.rbutils.api.audit.event.ProcessStartEvent; |
| 27 | |
| 28 | /** |
| 29 | * An helper implementation of the Logger interface. All methods of the inferface are implemented |
| 30 | * and do nothing. |
| 31 | * @since RbUtils 0.9.3.3 |
| 32 | * @version $Revision$ |
| 33 | * @author moishi |
| 34 | */ |
| 35 | public class LoggerHelper implements Logger { |
| 36 | |
| 37 | /** |
| 38 | * Constructs a new instance of LoggerHelper. Do nothing. |
| 39 | */ |
| 40 | public LoggerHelper() { |
| 41 | // Do Nothing |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * {@inheritDoc} |
| 46 | */ |
| 47 | public void processStarted(final ProcessStartEvent event) { |
| 48 | // Do Nothing |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * {@inheritDoc} |
| 53 | */ |
| 54 | public void processEnded(final ProcessEndEvent event) { |
| 55 | // Do Nothing |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * {@inheritDoc} |
| 60 | */ |
| 61 | public void processFileStarted(final ProcessFileStartEvent event) { |
| 62 | // Do Nothing |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * {@inheritDoc} |
| 67 | */ |
| 68 | public void processFileEnded(final ProcessFileEndEvent event) { |
| 69 | // Do Nothing |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * {@inheritDoc} |
| 74 | */ |
| 75 | public void addInfo(final ProcessEvent event) { |
| 76 | // Do Nothing |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * {@inheritDoc} |
| 81 | */ |
| 82 | public void addError(final ProcessEvent event) { |
| 83 | // Do Nothing |
| 84 | } |
| 85 | |
| 86 | /** |
| 87 | * {@inheritDoc} |
| 88 | */ |
| 89 | public void addException(final Exception exception) { |
| 90 | // Do Nothing |
| 91 | } |
| 92 | |
| 93 | } |