java.lang.Object
org.jooq.impl.DefaultExecuteListenerProvider
- All Implemented Interfaces:
Serializable,ExecuteListenerProvider
public class DefaultExecuteListenerProvider
extends Object
implements ExecuteListenerProvider, Serializable
A default implementation for
ExecuteListenerProvider.
This implementation just wraps an instance of ExecuteListener, 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 ExecuteListenerprovide()Provide anExecuteListenerinstance.static ExecuteListenerProvider[]providers(ExecuteListener... listeners) Convenience method to construct an array ofDefaultExecuteListenerProviderfrom an array ofExecuteListenerinstances.toString()
-
Constructor Details
-
DefaultExecuteListenerProvider
Create a new provider instance from an argument listener.- Parameters:
listener- The argument listener.
-
-
Method Details
-
providers
Convenience method to construct an array ofDefaultExecuteListenerProviderfrom an array ofExecuteListenerinstances. -
provide
Description copied from interface:ExecuteListenerProviderProvide anExecuteListenerinstance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An
ExecuteListenershall be provided exactly once per query execution lifecycle, i.e. perExecuteContext.- Specified by:
providein interfaceExecuteListenerProvider- Returns:
- An
ExecuteListenerinstance. - See Also:
-
toString
-