public final class NopContextProvider extends Object implements ContextProvider
Constructor and Description |
---|
NopContextProvider() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all existing values from thread context.
|
String |
get(String key)
Gets a value by key from thread context.
|
Map<String,String> |
getMapping()
Gets a read-only copy with all values from thread context.
|
void |
put(String key,
Object value)
Stores a value in thread context.
|
void |
remove(String key)
Removes a value from thread context.
|
public Map<String,String> getMapping()
ContextProvider
getMapping
in interface ContextProvider
public String get(String key)
ContextProvider
get
in interface ContextProvider
key
- Key of mappingnull
public void put(String key, Object value)
ContextProvider
put
in interface ContextProvider
key
- Key of mappingvalue
- Value of mappingpublic void remove(String key)
ContextProvider
remove
in interface ContextProvider
key
- Key of mappingpublic void clear()
ContextProvider
clear
in interface ContextProvider
Copyright © 2024. All rights reserved.