Description
Add public method ThreadContext::getThreadContextMap that returns a ReadOnlyThreadContextMap view of the internal data structure.
This method will be used by the log4j-core ContextInjectors so the ThreadContextAccess class in the org.apache.logging.log4j package in log4j-core can be removed.
Furthermore this method can be used as a building block by SPI implementators.
Attachments
Issue Links
- is related to
-
LOG4J2-1629 Support for primitive values in StringMap
- Open
-
LOG4J2-1648 Allow non-String values in the ThreadContext
- Open
-
LOG4J2-1010 Injectable context properties
- Closed
-
LOG4J2-1349 Garbage-free ThreadContext map
- Closed
- relates to
-
LOG4J2-1637 OSGi support is broken in Log4j2 2.7
- Closed
-
LOG4J2-1658 2.7 - ThreadContextAccess.getThreadContextMap NPE when specifying BasicContextSelector
- Closed