@@ -41,6 +41,7 @@ public class ControllerConfiguration implements JsonInitializable, Serializable
41
41
private String backend ;
42
42
private Class <? extends ControllerFactory > controllerFactory ;
43
43
private ObjectNode extensions ;
44
+ private ObjectNode options ;
44
45
45
46
public ControllerConfiguration () {
46
47
}
@@ -49,6 +50,7 @@ public ControllerConfiguration(ControllerConfiguration c) {
49
50
backend = c .backend ;
50
51
controllerFactory = c .controllerFactory ;
51
52
extensions = c .extensions ;
53
+ options =c .options ;
52
54
}
53
55
54
56
/**
@@ -93,6 +95,20 @@ public void setExtensions(ObjectNode node) {
93
95
extensions = node ;
94
96
}
95
97
98
+ /**
99
+ * The options for the controller
100
+ */
101
+ public ObjectNode getOptions () {
102
+ return options ;
103
+ }
104
+
105
+ /**
106
+ * The options for the controller
107
+ */
108
+ public void setOptions (ObjectNode node ) {
109
+ options = node ;
110
+ }
111
+
96
112
@ SuppressWarnings ("unchecked" )
97
113
@ Override
98
114
public void initializeFromJson (JsonNode node ) {
@@ -108,7 +124,8 @@ public void initializeFromJson(JsonNode node) {
108
124
x .asText ());
109
125
}
110
126
extensions = (ObjectNode ) node .get ("extensions" );
111
- LOGGER .debug ("Initialized: source={} backend={} controllerFactory={} extensions={}" , node , backend , controllerFactory , extensions );
127
+ options = (ObjectNode ) node .get ("options" );
128
+ LOGGER .debug ("Initialized: source={} backend={} controllerFactory={} extensions={} options={}" , node , backend , controllerFactory , extensions ,options );
112
129
}
113
130
} catch (Exception e ) {
114
131
throw new RuntimeException (e );
0 commit comments