public final class ThreadLocalContextProvider extends Object implements ContextProvider
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the context.
|
List<String> |
getContext()
Return the current list of fields.
|
static ThreadLocalContextProvider |
getInstance() |
void |
popContext()
Remove the last element from the field context.
|
void |
pushContext(String context)
Add the supplied field name to the end of the context.
|
public static ThreadLocalContextProvider getInstance()
@Nonnull public List<String> getContext()
ContextProvidergetContext in interface ContextProviderpublic void pushContext(@Nonnull String context)
ContextProviderpushContext in interface ContextProviderpublic void popContext()
ContextProviderpopContext in interface ContextProviderpublic void clear()
ContextProviderclear in interface ContextProviderCopyright © 2015. All rights reserved.