Skip to content

Commit

Permalink
feat: GenericModule added.
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed May 27, 2024
1 parent 32c9696 commit b4cfbe7
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 b4cfbe7

Please sign in to comment.