public class DefaultExecuteListenerProvider extends java.lang.Object implements ExecuteListenerProvider, java.io.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. |
java.lang.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
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014. All Rights Reserved.