public class DefaultExecuteListenerProvider extends Object implements ExecuteListenerProvider, Serializable
ExecuteListenerProvider
.
This implementation just wraps an instance of ExecuteListener
, always
providing the same.
Constructor and Description |
---|
DefaultExecuteListenerProvider(ExecuteListener listener)
Create a new provider instance from an argument listener.
|
Modifier and Type | Method and Description |
---|---|
ExecuteListener |
provide()
Provide an
ExecuteListener instance. |
static ExecuteListenerProvider[] |
providers(ExecuteListener... listeners)
Convenience method to construct an array of
DefaultExecuteListenerProvider from an array of
ExecuteListener instances. |
String |
toString() |
public DefaultExecuteListenerProvider(ExecuteListener listener)
listener
- The argument listener.public static ExecuteListenerProvider[] providers(ExecuteListener... listeners)
DefaultExecuteListenerProvider
from an array of
ExecuteListener
instances.public final ExecuteListener provide()
ExecuteListener
instance.
Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An ExecuteListener
shall be provided exactly once per query
execution lifecycle, i.e. per ExecuteContext
.
provide
in interface ExecuteListenerProvider
ExecuteListener
instance.ExecuteListener
,
ExecuteContext
,
DefaultExecuteListenerProvider
Copyright © 2017. All Rights Reserved.