ContextProviderpublic final class NopContextProvider extends java.lang.Object implements ContextProvider
| Constructor | Description |
|---|---|
NopContextProvider() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
Removes all existing values from thread context.
|
java.lang.String |
get(java.lang.String key) |
Gets a value by key from thread context.
|
java.util.Map<java.lang.String,java.lang.String> |
getMapping() |
Gets a read-only copy with all values from thread context.
|
void |
put(java.lang.String key,
java.lang.Object value) |
Stores a value in thread context.
|
void |
remove(java.lang.String key) |
Removes a value from thread context.
|
public java.util.Map<java.lang.String,java.lang.String> getMapping()
ContextProvidergetMapping in interface ContextProviderpublic java.lang.String get(java.lang.String key)
ContextProviderget in interface ContextProviderkey - Key of mappingnullpublic void put(java.lang.String key,
java.lang.Object value)
ContextProviderput in interface ContextProviderkey - Key of mappingvalue - Value of mappingpublic void remove(java.lang.String key)
ContextProviderremove in interface ContextProviderkey - Key of mappingpublic void clear()
ContextProviderclear in interface ContextProviderCopyright © 2020. All rights reserved.