diff --git a/jOOQ/src/main/java/org/jooq/Configuration.java b/jOOQ/src/main/java/org/jooq/Configuration.java index 0af8b8b1cf..7b3c9f91ff 100644 --- a/jOOQ/src/main/java/org/jooq/Configuration.java +++ b/jOOQ/src/main/java/org/jooq/Configuration.java @@ -139,8 +139,38 @@ public interface Configuration extends Serializable { */ Object setData(Object key, Object value); + /** + * Get the configured ExecuteListeners from this configuration. + *

+ * This method allows for retrieving the configured + * ExecuteListener instances from this configuration. These + * instances receive execution lifecycle notification events every time jOOQ + * executes queries. jOOQ makes no assumptions about the internal state of + * these listeners, i.e. listener instances may + *

+ *

+ * Note, depending on your {@link Settings#isExecuteLogging()}, some + * additional listeners may be prepended to this list, internally. Those + * listeners will never be exposed through this method, though. + * + * @return The configured set of execute listeners. + * @see ExecuteListener + * @see ExecuteContext + */ List getExecuteListeners(); + /** + * Set new ExecuteListeners onto this configuration. + * + * @param listeners The new set of execute listeners. + * @see #getExecuteListeners() + */ void setExecuteListeners(List listeners); }