Add servlet decorators for hg and svn

This commit is contained in:
René Pfeuffer
2018-09-14 09:36:56 +02:00
parent 6ab5f58fe9
commit 7de9f69061
10 changed files with 98 additions and 9 deletions

View File

@@ -46,6 +46,7 @@ import sonia.scm.plugin.Extension;
import sonia.scm.repository.HgContext;
import sonia.scm.repository.HgContextProvider;
import sonia.scm.repository.HgHookManager;
import sonia.scm.repository.spi.ScmProviderHttpServlet;
/**
*
@@ -79,6 +80,8 @@ public class HgServletModule extends ServletModule
bind(HgConfigPackagesToDtoMapper.class).to(Mappers.getMapper(HgConfigPackagesToDtoMapper.class).getClass());
bind(HgConfigInstallationsToDtoMapper.class);
bind(ScmProviderHttpServlet.class).annotatedWith(Hg.class).toProvider(HgCGIServletProvider.class);
// bind servlets
serve(MAPPING_HOOK).with(HgHookCallbackServlet.class);
}