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 Details

  • Constructor Details

    • FhirContextThreadLocalAccessor

      public FhirContextThreadLocalAccessor()
  • Method Details

    • key

      public Object key()
      Specified by:
      key in interface io.micrometer.context.ThreadLocalAccessor<FhirContext>
    • getValue

      public FhirContext getValue()
      Specified by:
      getValue in interface io.micrometer.context.ThreadLocalAccessor<FhirContext>
    • setValue

      public void setValue(FhirContext value)
      Specified by:
      setValue in interface io.micrometer.context.ThreadLocalAccessor<FhirContext>
    • setValue

      public void setValue()
      Specified by:
      setValue in interface io.micrometer.context.ThreadLocalAccessor<FhirContext>