java.lang.Object
org.jooq.impl.DefaultDiagnosticsListenerProvider
- All Implemented Interfaces:
Serializable,DiagnosticsListenerProvider
public class DefaultDiagnosticsListenerProvider
extends Object
implements DiagnosticsListenerProvider, Serializable
A default implementation for
DiagnosticsListenerProvider.
This implementation just wraps an instance of DiagnosticsListener,
always providing the same.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new provider instance from an argument listener. -
Method Summary
Modifier and TypeMethodDescriptionfinal DiagnosticsListenerprovide()Provide anDiagnosticsListenerinstance.static DiagnosticsListenerProvider[]providers(DiagnosticsListener... listeners) Convenience method to construct an array ofDefaultDiagnosticsListenerProviderfrom an array ofDiagnosticsListenerinstances.toString()
-
Constructor Details
-
DefaultDiagnosticsListenerProvider
Create a new provider instance from an argument listener.- Parameters:
listener- The argument listener.
-
-
Method Details
-
providers
Convenience method to construct an array ofDefaultDiagnosticsListenerProviderfrom an array ofDiagnosticsListenerinstances. -
provide
Description copied from interface:DiagnosticsListenerProviderProvide anDiagnosticsListenerinstance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
The lifecycle of the
DiagnosticsListeneris not specified. New instances can be provided any time clients want to reset their diagnostics.- Specified by:
providein interfaceDiagnosticsListenerProvider- Returns:
- A
DiagnosticsListenerinstance. - See Also:
-
toString
-