| package com.googlesource.gerrit.plugins.chatgpt; |
| |
| import com.google.gerrit.server.events.EventListener; |
| import com.google.inject.AbstractModule; |
| import com.google.inject.multibindings.Multibinder; |
| import com.googlesource.gerrit.plugins.chatgpt.listener.GerritListener; |
| |
| public class Module extends AbstractModule { |
| |
| @Override |
| protected void configure() { |
| Multibinder<EventListener> eventListenerBinder = Multibinder.newSetBinder(binder(), EventListener.class); |
| eventListenerBinder.addBinding().to(GerritListener.class); |
| } |
| } |