Module org.jooq
Package org.jooq

Interface ParseListenerProvider

All Known Implementing Classes:
DefaultParseListenerProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @Pro public interface ParseListenerProvider
A provider for ParseListener instances.

In order to facilitate the lifecycle management of ParseListener instances that are provided to a jOOQ Configuration, clients can implement this API. To jOOQ, it is thus irrelevant, if parser listeners are stateful or stateless, local to an execution, or global to an application.

Author:
Lukas Eder
See Also:
ParseListener, Configuration
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull ParseListener
    Provide an ParserListener instance.
  • Method Details

    • provide

      @NotNull @NotNull ParseListener provide()
      Provide an ParserListener 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. per ParseContext.

      Returns:
      An ExecuteListener instance.
      See Also:
      ParseListener, ParseContext, DefaultParseListenerProvider