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 TypeMethodDescriptionvoidclose()Performs no action as there are no resources to close in this implementation.Returnsnullas this implementation has no application name.getStatement(String queryId) Returnsnullas no statement enrichment is performed.
-
Constructor Details
-
EnrichmentOff
public EnrichmentOff()
-
-
Method Details
-
getStatement
Returnsnullas no statement enrichment is performed.- Specified by:
getStatementin interfaceLogEnricher- Parameters:
queryId- the query ID (which is ignored).- Returns:
null.
-
enricherApplicationName
Returnsnullas this implementation has no application name.- Specified by:
enricherApplicationNamein interfaceLogEnricher- Returns:
null.
-
close
Performs no action as there are no resources to close in this implementation.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- never thrown in this implementation
-