Package org.springframework.context.i18n
Class LocaleContextThreadLocalAccessor
java.lang.Object
org.springframework.context.i18n.LocaleContextThreadLocalAccessor
- All Implemented Interfaces:
- io.micrometer.context.ThreadLocalAccessor<LocaleContext>
public class LocaleContextThreadLocalAccessor
extends Object
implements io.micrometer.context.ThreadLocalAccessor<LocaleContext>
Adapt 
LocaleContextHolder to the ThreadLocalAccessor contract
 to assist the Micrometer Context Propagation library with LocaleContext
 propagation.- Since:
- 6.2
- Author:
- Tadaya Tsuyukubo
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetValue()key()voidsetValue()voidsetValue(LocaleContext value) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.context.ThreadLocalAccessorreset, restore, restore
- 
Field Details- 
KEYKey under which this accessor is registered inContextRegistry.
 
- 
- 
Constructor Details- 
LocaleContextThreadLocalAccessorpublic LocaleContextThreadLocalAccessor()
 
- 
- 
Method Details- 
key- Specified by:
- keyin interface- io.micrometer.context.ThreadLocalAccessor<LocaleContext>
 
- 
getValue- Specified by:
- getValuein interface- io.micrometer.context.ThreadLocalAccessor<LocaleContext>
 
- 
setValue- Specified by:
- setValuein interface- io.micrometer.context.ThreadLocalAccessor<LocaleContext>
 
- 
setValuepublic void setValue()- Specified by:
- setValuein interface- io.micrometer.context.ThreadLocalAccessor<LocaleContext>
 
 
-