java.lang.Object
org.jooq.impl.DefaultParseListenerProvider
- All Implemented Interfaces:
Serializable
,ParseListenerProvider
@Pro
public class DefaultParseListenerProvider
extends Object
implements ParseListenerProvider, Serializable
A default implementation for
ParseListenerProvider
.
This implementation just wraps an instance of ParseListenerProvider
,
always providing the same.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultParseListenerProvider
(ParseListener listener) Create a new provider instance from an argument listener. -
Method Summary
Modifier and TypeMethodDescriptionfinal ParseListener
provide()
Provide anParserListener
instance.static ParseListenerProvider[]
providers
(ParseListener... listeners) Convenience method to construct an array ofDefaultParseListenerProvider
from an array ofParseListener
instances.toString()
-
Constructor Details
-
DefaultParseListenerProvider
Create a new provider instance from an argument listener.- Parameters:
listener
- The argument listener.
-
-
Method Details
-
providers
Convenience method to construct an array ofDefaultParseListenerProvider
from an array ofParseListener
instances. -
provide
Description copied from interface:ParseListenerProvider
Provide anParserListener
instance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
An
ParserListener
shall be provided exactly once per parse call execution lifecycle, i.e. perParseContext
.- Specified by:
provide
in interfaceParseListenerProvider
- Returns:
- An
ExecuteListener
instance. - See Also:
-
toString
-