You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: operator-framework-quarkus-extension/deployment/src/main/java/io/javaoperatorsdk/quarkus/extension/deployment/QuarkusExtensionProcessor.java
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,20 @@ private static class ValueExtractor {
194
194
this.extContConfig = extContConfig;
195
195
}
196
196
197
+
/**
198
+
* Extracts the appropriate configuration value for the controller checking first any annotation
199
+
* configuration, then potentially overriding it by a properties-provided value or returning a
200
+
* default value if neither is provided.
201
+
*
202
+
* @param extractor a Function extracting the optional value we're interested in from the
203
+
* external configuration
204
+
* @param annotationField the name of the {@link Controller} annotation we're want to retrieve
205
+
* if present
206
+
* @param converter a Function converting the annotation value to the type we're expecting
207
+
* @param defaultValue a Supplier that computes/retrieve a default value when needed
208
+
* @param <T> the expected type of the configuration value we're trying to extract
0 commit comments