Debian Codegraph @

gossip-slf4j/src/main/java/org/slf4j/impl/StaticMDCBinder.java

raw symbols SCIP
1 /**
2 * Copyright (c) 2009-2011 the original author or authors.
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 package org.slf4j.impl;
17
18 import org.slf4j.helpers.BasicMDCAdapter;
19 import org.slf4j.spi.MDCAdapter;
20
21 /**
22 * Gossip MDC binder for SLF4J.
23 *
24 * @author <a href="mailto:[email protected]">Jason Dillon</a>
25 * @since 1.0
26 */
27 @SuppressWarnings({"UnusedDeclaration"})
28 public final class StaticMDCBinder
29 {
30 public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
31
32 private final BasicMDCAdapter adapter = new BasicMDCAdapter();
33
34 public MDCAdapter getMDCA() {
35 return adapter;
36 }
37
38 public String getMDCAdapterClassStr() {
39 return adapter.getClass().getName();
40 }
41 }