Class FhirContextThreadLocalAccessor
java.lang.Object
org.openehealth.ipf.commons.ihe.fhir.audit.FhirContextThreadLocalAccessor
- All Implemented Interfaces:
io.micrometer.context.ThreadLocalAccessor<FhirContext>
public class FhirContextThreadLocalAccessor
extends Object
implements io.micrometer.context.ThreadLocalAccessor<FhirContext>
ThreadLocalAccessor for a
FhirContextHolder. Register an instance
to the AuditContext using
ContextRegistry.registerThreadLocalAccessor(ThreadLocalAccessor)
to be able to reuse a predefined FhirContext for audit record serialization via
AbstractFhirRestTLSAuditRecordSender subclasses.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()key()voidsetValue()voidsetValue(FhirContext value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micrometer.context.ThreadLocalAccessor
reset, restore, restore
-
Field Details
-
KEY
- See Also:
-
-
Constructor Details
-
FhirContextThreadLocalAccessor
public FhirContextThreadLocalAccessor()
-
-
Method Details
-
key
- Specified by:
keyin interfaceio.micrometer.context.ThreadLocalAccessor<FhirContext>
-
getValue
- Specified by:
getValuein interfaceio.micrometer.context.ThreadLocalAccessor<FhirContext>
-
setValue
- Specified by:
setValuein interfaceio.micrometer.context.ThreadLocalAccessor<FhirContext>
-
setValue
public void setValue()- Specified by:
setValuein interfaceio.micrometer.context.ThreadLocalAccessor<FhirContext>
-