File tree 2 files changed +11
-5
lines changed
api/src/main/java/com/michelin/ns4kafka/services/executors 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ public class ConnectorAsyncExecutor {
27
27
/**
28
28
* The managed clusters config
29
29
*/
30
- @ Inject
31
- private KafkaAsyncExecutorConfig kafkaAsyncExecutorConfig ;
30
+ private final KafkaAsyncExecutorConfig kafkaAsyncExecutorConfig ;
32
31
33
32
/**
34
33
* The connector repository
@@ -42,6 +41,15 @@ public class ConnectorAsyncExecutor {
42
41
@ Inject
43
42
private KafkaConnectClient kafkaConnectClient ;
44
43
44
+ /**
45
+ * Constructor
46
+ * Required to inject multiple
47
+ * @param kafkaAsyncExecutorConfig The managed clusters config
48
+ */
49
+ public ConnectorAsyncExecutor (KafkaAsyncExecutorConfig kafkaAsyncExecutorConfig ) {
50
+ this .kafkaAsyncExecutorConfig = kafkaAsyncExecutorConfig ;
51
+ }
52
+
45
53
/**
46
54
* Start connector synchronization
47
55
*/
Original file line number Diff line number Diff line change 1
1
package com .michelin .ns4kafka .services .executors ;
2
2
3
-
4
3
import io .micronaut .context .annotation .ConfigurationProperties ;
5
4
import io .micronaut .context .annotation .EachProperty ;
6
5
import io .micronaut .context .annotation .Parameter ;
10
9
import lombok .Setter ;
11
10
import org .apache .kafka .clients .admin .Admin ;
12
11
13
- import java .security .Provider ;
14
12
import java .util .Map ;
15
13
import java .util .Properties ;
16
14
@@ -21,7 +19,7 @@ public class KafkaAsyncExecutorConfig {
21
19
/**
22
20
* Cluster name
23
21
*/
24
- private final String name ;
22
+ private String name ;
25
23
26
24
/**
27
25
* Run topics synchronization ?
You can’t perform that action at this time.
0 commit comments