java.lang.Object
org.jooq.impl.DefaultVisitListenerProvider
- All Implemented Interfaces:
Serializable
,VisitListenerProvider
public class DefaultVisitListenerProvider
extends Object
implements VisitListenerProvider, Serializable
A default implementation for
VisitListenerProvider
.
This implementation just wraps an instance of VisitListener
, always
providing the same.
- Author:
- Lukas Eder
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultVisitListenerProvider
(VisitListener listener) Create a new provider instance from an argument listener. -
Method Summary
Modifier and TypeMethodDescriptionfinal VisitListener
provide()
Provide aVisitListener
instance.static VisitListenerProvider[]
providers
(VisitListener... listeners) Convenience method to construct an array ofDefaultVisitListenerProvider
from an array ofVisitListener
instances.toString()
-
Constructor Details
-
DefaultVisitListenerProvider
Create a new provider instance from an argument listener.- Parameters:
listener
- The argument listener.
-
-
Method Details
-
providers
Convenience method to construct an array ofDefaultVisitListenerProvider
from an array ofVisitListener
instances. -
provide
Description copied from interface:VisitListenerProvider
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
.- Specified by:
provide
in interfaceVisitListenerProvider
- Returns:
- A
VisitListener
instance. - See Also:
-
toString
-