Convert ChangeControl.AssistedFactory into a manual factory

This is required so that in a later step we can throw an OrmException
from the create method that instantiates the change notes. With an
assisted factory the OrmException would be wrapped into a
ProvisionException.

Change-Id: Ie1fd8770b9d76f6b88a4732fd43192d4f36fb316
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-02-03 10:49:51 +01:00
parent f64480d28c
commit 668fa7cda9
6 changed files with 91 additions and 85 deletions

View File

@@ -119,7 +119,7 @@ public class BatchProgramModule extends FactoryModule {
bind(new TypeLiteral<Set<AccountGroup.UUID>>() {})
.annotatedWith(GitReceivePackGroups.class)
.toInstance(Collections.<AccountGroup.UUID> emptySet());
factory(ChangeControl.AssistedFactory.class);
bind(ChangeControl.Factory.class);
factory(ProjectControl.AssistedFactory.class);
install(new BatchGitModule());