@Descriptor("Defines a repository") public CommandRepo repo(@Descriptor("the type e { R5, OBR }") String type, @Descriptor("url of the repository index") String location) throws Exception { AceObrRepository repo = createRepository(type, location); // ACE-624 allow support for different auth mechanisms... RegistryImpl registry = new RegistryImpl(m_connectionFactory, new AceUrlConnector(m_connectionFactory)); repo.setRegistry(registry); return new CommandRepo(repo); }
Registry registry = new RegistryImpl(aceUrlConnector); fixedIndexedRepo.setRegistry(registry);