Class EnrichmentOff

java.lang.Object
com.github.isuhorukov.log.watcher.EnrichmentOff
All Implemented Interfaces:
LogEnricher, Closeable, AutoCloseable

public class EnrichmentOff extends Object implements LogEnricher
A no-op implementation of LogEnricher that disables log enrichment.

This class is used as a fallback or default implementation when log enrichment is not needed or cannot be configured. It implements all methods of the LogEnricher interface but provides no operational functionality.

  • Constructor Details

    • EnrichmentOff

      public EnrichmentOff()
  • Method Details

    • getStatement

      public String getStatement(String queryId)
      Returns null as no statement enrichment is performed.
      Specified by:
      getStatement in interface LogEnricher
      Parameters:
      queryId - the query ID (which is ignored).
      Returns:
      null.
    • enricherApplicationName

      public String enricherApplicationName()
      Returns null as this implementation has no application name.
      Specified by:
      enricherApplicationName in interface LogEnricher
      Returns:
      null.
    • close

      public void close() throws IOException
      Performs no action as there are no resources to close in this implementation.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException - never thrown in this implementation