Class BufferContextProvider
java.lang.Object
org.eclipse.microprofile.context.tck.contexts.buffer.spi.BufferContextProvider
- All Implemented Interfaces:
ThreadContextProvider
This is a fake context type that is created by the test suite.
It associates a StringBuffer with the current thread, accessible via
the static get/set operations of the BufferContext class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearedContext(Map<String, String> props) Buffer context is considered cleared by associating a new empty StringBuffer with the thread.currentContext(Map<String, String> props) Save the buffer instance that is associated with the current thread.
-
Constructor Details
-
BufferContextProvider
public BufferContextProvider()
-
-
Method Details
-
clearedContext
Buffer context is considered cleared by associating a new empty StringBuffer with the thread.- Specified by:
clearedContextin interfaceThreadContextProvider
-
currentContext
Save the buffer instance that is associated with the current thread.- Specified by:
currentContextin interfaceThreadContextProvider
-
getThreadContextType
- Specified by:
getThreadContextTypein interfaceThreadContextProvider
-