Class LabelContextProvider
java.lang.Object
org.eclipse.microprofile.context.tck.contexts.label.spi.LabelContextProvider
- All Implemented Interfaces:
ThreadContextProvider
This is a fake all-in-one context provider that is created by the test suite.
This context type captures/clears/propagates/restores an immutable label (a String) that is associated with a thread.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearedContext(Map<String, String> props) Cleared context is the empty string.currentContext(Map<String, String> props) Save the current context.
-
Constructor Details
-
LabelContextProvider
public LabelContextProvider()
-
-
Method Details
-
clearedContext
Cleared context is the empty string.- Specified by:
clearedContextin interfaceThreadContextProvider
-
currentContext
Save the current context.- Specified by:
currentContextin interfaceThreadContextProvider
-
getThreadContextType
- Specified by:
getThreadContextTypein interfaceThreadContextProvider
-