Skip to content

Commit

Permalink
feat: GenericModule added. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev authored May 28, 2024
1 parent 32c9696 commit 25ca190
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package ch.sbb.polarion.extension.generic;

import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import com.polarion.alm.ui.server.forms.extensions.FormExtensionContribution;

@SuppressWarnings("unused")
public abstract class GenericModule extends AbstractModule {

protected abstract FormExtensionContribution getFormExtensionContribution();

@Override
protected void configure() {
Multibinder.newSetBinder(this.binder(), FormExtensionContribution.class)
.addBinding()
.toInstance(getFormExtensionContribution());
}
}

0 comments on commit 25ca190

Please sign in to comment.