File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class Runner {
54
54
55
55
public static void main (String [] args ) {
56
56
Operator operator = new Operator (DefaultConfigurationService . instance());
57
- operator. register(new WebServerController ());
57
+ operator. register(new WebPageReconciler ());
58
58
operator. start();
59
59
}
60
60
}
@@ -214,6 +214,28 @@ public class Application {
214
214
}
215
215
```
216
216
217
+ You will also need a ` @Configuration ` to make sure that your reconciler is registered:
218
+
219
+ ``` java
220
+
221
+ @Configuration
222
+ public class Config {
223
+
224
+ @Bean
225
+ public WebPageReconciler customServiceController () {
226
+ return new WebPageReconciler ();
227
+ }
228
+
229
+ @Bean (initMethod = " start" , destroyMethod = " stop" )
230
+ @SuppressWarnings (" rawtypes" )
231
+ public Operator operator (List<Reconciler > controllers ) {
232
+ Operator operator = new Operator ();
233
+ controllers. forEach(operator:: register);
234
+ return operator;
235
+ }
236
+ }
237
+ ```
238
+
217
239
#### Spring Boot test support
218
240
219
241
Adding the following dependency would let you mock the operator for the tests where loading the spring container is
You can’t perform that action at this time.
0 commit comments