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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user