sumitagrawl commented on code in PR #7372:
URL: https://github.com/apache/ozone/pull/7372#discussion_r1822218459
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/ReconUpgradeActionsModule.java:
##########
@@ -0,0 +1,17 @@
+package org.apache.hadoop.ozone.recon;
+
+import com.google.inject.AbstractModule;
+import com.google.inject.Singleton;
+import org.apache.hadoop.ozone.recon.upgrade.InitialConstraintUpgradeAction;
+
+/**
+ * Guice module for binding upgrade actions as singletons in Recon.
+ */
+public class ReconUpgradeActionsModule extends AbstractModule {
+
+ @Override
+ protected void configure() {
+ // Bind UpdateUnhealthyContainersConstraintAction as a singleton
+ bind(InitialConstraintUpgradeAction.class).in(Singleton.class);
Review Comment:
This need not be registed / singleton, as used once only, can argument be
passed ?
--
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]