KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > routing > mock > MockLogger


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 EBM Websourcing, http://www.ebmwebsourcing.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: MockLogger.java 3:44:27 PM ddesjardins $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.jbi.routing.mock;
23
24 import org.objectweb.util.monolog.api.Level;
25 import org.objectweb.util.monolog.api.Logger;
26
27 /**
28  * Mock object of the Logger
29  * @author ddesjardins - eBMWebsourcing
30  */

31 public class MockLogger implements Logger{
32
33     public int getCurrentIntLevel() {
34         return 0;
35     }
36
37     public Level getCurrentLevel() {
38         return null;
39     }
40
41     public boolean isLoggable(int arg0) {
42         return false;
43     }
44
45     public boolean isLoggable(Level arg0) {
46         return false;
47     }
48
49     public boolean isOn() {
50         return false;
51     }
52
53     public void log(int arg0, Object JavaDoc arg1) {
54     }
55
56     public void log(Level arg0, Object JavaDoc arg1) {
57     }
58
59     public void log(int arg0, Object JavaDoc arg1, Throwable JavaDoc arg2) {
60     }
61
62     public void log(Level arg0, Object JavaDoc arg1, Throwable JavaDoc arg2) {
63     }
64
65     public void log(int arg0, Object JavaDoc arg1, Object JavaDoc arg2, Object JavaDoc arg3) {
66     }
67
68     public void log(Level arg0, Object JavaDoc arg1, Object JavaDoc arg2, Object JavaDoc arg3) {
69     }
70
71     public void log(int arg0, Object JavaDoc arg1, Throwable JavaDoc arg2, Object JavaDoc arg3, Object JavaDoc arg4) {
72     }
73
74     public void log(Level arg0, Object JavaDoc arg1, Throwable JavaDoc arg2, Object JavaDoc arg3, Object JavaDoc arg4) {
75     }
76
77     public void setIntLevel(int arg0) {
78     }
79
80     public void setLevel(Level arg0) {
81     }
82
83     public void turnOff() {
84     }
85
86     public void turnOn() {
87     }
88
89     public Object JavaDoc getAttribute(String JavaDoc arg0) {
90         return null;
91     }
92
93     public String JavaDoc[] getAttributeNames() {
94         return null;
95     }
96
97     public String JavaDoc getName() {
98         return null;
99     }
100
101     public String JavaDoc getType() {
102         return null;
103     }
104
105     public Object JavaDoc setAttribute(String JavaDoc arg0, Object JavaDoc arg1) {
106         return null;
107     }
108
109     public void setName(String JavaDoc arg0) {
110     }
111
112 }
113
Popular Tags