1 package org.apache.commons.jcs.engine.logging;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import org.apache.commons.jcs.engine.logging.behavior.ICacheEvent;
23 import org.apache.commons.jcs.engine.logging.behavior.ICacheEventLogger;
24
25 /**
26 * For testing the configurator.
27 */
28 public class MockCacheEventLogger
29 implements ICacheEventLogger
30 {
31 /** test property */
32 private String testProperty;
33
34 /**
35 * @param source
36 * @param eventName
37 * @param optionalDetails
38 */
39 @Override
40 public void logApplicationEvent( String source, String eventName, String optionalDetails )
41 {
42 // TODO Auto-generated method stub
43 }
44
45 /**
46 * @param source
47 * @param eventName
48 * @param errorMessage
49 */
50 @Override
51 public void logError( String source, String eventName, String errorMessage )
52 {
53 // TODO Auto-generated method stub
54 }
55
56 /**
57 * @param source
58 * @param region
59 * @param eventName
60 * @param optionalDetails
61 * @param key
62 * @return ICacheEvent
63 */
64 @Override
65 public <T> ICacheEvent<T> createICacheEvent( String source, String region, String eventName, String optionalDetails,
66 T key )
67 {
68 return new CacheEvent<T>();
69 }
70
71 /**
72 * @param event
73 */
74 @Override
75 public <T> void logICacheEvent( ICacheEvent<T> event )
76 {
77 // TODO Auto-generated method stub
78 }
79
80 /**
81 * @param testProperty
82 */
83 public void setTestProperty( String testProperty )
84 {
85 this.testProperty = testProperty;
86 }
87
88 /**
89 * @return testProperty
90 */
91 public String getTestProperty()
92 {
93 return testProperty;
94 }
95 }