This is an automated email from the ASF dual-hosted git repository.

rcordier pushed a commit to branch postgresql
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit 9282cb6840a19367526da592558b8d84cdc9a213
Author: Quan Tran <[email protected]>
AuthorDate: Wed Feb 7 15:17:05 2024 +0700

    JAMES-2586 Guice binding for PostgresNotificationRegistry
---
 .../java/org/apache/james/modules/data/PostgresVacationModule.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/server/container/guice/postgres-common/src/main/java/org/apache/james/modules/data/PostgresVacationModule.java
 
b/server/container/guice/postgres-common/src/main/java/org/apache/james/modules/data/PostgresVacationModule.java
index a174054f0e..c7dddf4fd4 100644
--- 
a/server/container/guice/postgres-common/src/main/java/org/apache/james/modules/data/PostgresVacationModule.java
+++ 
b/server/container/guice/postgres-common/src/main/java/org/apache/james/modules/data/PostgresVacationModule.java
@@ -26,7 +26,7 @@ import org.apache.james.vacation.api.NotificationRegistry;
 import org.apache.james.vacation.api.VacationDeleteUserTaskStep;
 import org.apache.james.vacation.api.VacationRepository;
 import org.apache.james.vacation.api.VacationService;
-import org.apache.james.vacation.memory.MemoryNotificationRegistry;
+import org.apache.james.vacation.postgres.PostgresNotificationRegistry;
 import org.apache.james.vacation.postgres.PostgresVacationRepository;
 
 import com.google.inject.AbstractModule;
@@ -43,8 +43,8 @@ public class PostgresVacationModule extends AbstractModule {
         bind(PostgresVacationRepository.class).in(Scopes.SINGLETON);
         bind(VacationRepository.class).to(PostgresVacationRepository.class);
 
-        bind(MemoryNotificationRegistry.class).in(Scopes.SINGLETON);
-        bind(NotificationRegistry.class).to(MemoryNotificationRegistry.class);
+        bind(PostgresNotificationRegistry.class).in(Scopes.SINGLETON);
+        
bind(NotificationRegistry.class).to(PostgresNotificationRegistry.class);
 
         Multibinder<PostgresModule> postgresVacationModules = 
Multibinder.newSetBinder(binder(), PostgresModule.class);
         
postgresVacationModules.addBinding().toInstance(org.apache.james.vacation.postgres.PostgresVacationModule.MODULE);


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

Reply via email to