public DslContextConfiguration(JooqProperties properties, ConnectionProvider connectionProvider, ObjectProvider<TransactionProvider> transactionProviderProvider, ObjectProvider<RecordMapperProvider> recordMapperProviderProvider, ObjectProvider<Settings> settingsProvider, ObjectProvider<RecordListenerProvider[]> recordListenerProvidersProvider, ExecuteListenerProvider[] executeListenerProviders, ObjectProvider<VisitListenerProvider[]> visitListenerProvidersProvider) { this.properties = properties; this.connectionProvider = connectionProvider; this.transactionProvider = transactionProviderProvider.getIfAvailable(); this.recordMapperProvider = recordMapperProviderProvider.getIfAvailable(); this.settings = settingsProvider.getIfAvailable(); this.recordListenerProviders = recordListenerProvidersProvider .getIfAvailable(); this.executeListenerProviders = executeListenerProviders; this.visitListenerProviders = visitListenerProvidersProvider.getIfAvailable(); }
@Bean ExecuteListenerProvider tracingExecuteListenerProvider() { return new DefaultExecuteListenerProvider(this); }
DSLContexts(Settings settings, @Nullable ExecuteListenerProvider listenerProvider) { this.settings = checkNotNull(settings, "settings"); this.listenerProvider = listenerProvider; }