adoroszlai commented on code in PR #12238:
URL: https://github.com/apache/ozone/pull/12238#discussion_r4791405169


##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/VirtualHostStyleFilter.java:
##########
@@ -128,6 +127,15 @@ private WebApplicationException getException(String 
message) {
   @VisibleForTesting
   public void setConfiguration(OzoneConfiguration config) {
     this.conf = config;
+    loadDomains();
+  }

Review Comment:
   Can we switch from field injection to "setter" injection?  Move `@Inject` 
from `conf` to `setConfiguration`.  This should make `loadDomains` in `filter` 
unnecessary.  (Also please remove `@VisibleForTesting` (and import).)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to