Class EnrichmentOff
java.lang.Object
com.github.isuhorukov.log.watcher.EnrichmentOff
- All Implemented Interfaces:
LogEnricher
,Closeable
,AutoCloseable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Performs no action as there are no resources to close in this implementation.Returnsnull
as this implementation has no application name.getStatement
(String queryId) Returnsnull
as no statement enrichment is performed.
-
Constructor Details
-
EnrichmentOff
public EnrichmentOff()
-
-
Method Details
-
getStatement
Returnsnull
as no statement enrichment is performed.- Specified by:
getStatement
in interfaceLogEnricher
- Parameters:
queryId
- the query ID (which is ignored).- Returns:
null
.
-
enricherApplicationName
Returnsnull
as this implementation has no application name.- Specified by:
enricherApplicationName
in interfaceLogEnricher
- Returns:
null
.
-
close
Performs no action as there are no resources to close in this implementation.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- never thrown in this implementation
-