Package org.jooq
Interface VisitListenerProvider
-
- All Known Implementing Classes:
DefaultVisitListenerProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface VisitListenerProvider
A provider forVisitListener
instances.In order to facilitate the lifecycle management of
VisitListener
instances that are provided to a jOOQConfiguration
, clients can implement this API. To jOOQ, it is thus irrelevant, if execute listeners are stateful or stateless, local to a single record or record manipulation, or global to an application.- Author:
- Lukas Eder
- See Also:
VisitListener
,Configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VisitListener
provide()
Provide aVisitListener
instance.
-
-
-
Method Detail
-
provide
VisitListener provide()
Provide aVisitListener
instance.Implementations are free to choose whether this method returns new instances at every call or whether the same instance is returned repetitively.
A
VisitListener
shall be provided exactly once perContext
traversal, i.e. perRenderContext
orBindContext
.- Returns:
- A
VisitListener
instance. - See Also:
VisitListener
,VisitContext
,DefaultVisitListenerProvider
-
-