@ {@link Inject} private {@link AddonRepository} repository; @author Lincoln Baxter, III @author Koen Aers @author George Gastaldi
@ {@link Inject} private {@link AddonRepository} repository;
273274275276277278279280281282283
{ Assert.notNull(mode, "Addon repository mode must not be null."); Assert.notNull(mode, "Addon repository directory must not be null."); assertNotAlive(); AddonRepository repository = AddonRepositoryImpl.forDirectory(this, directory); if (mode.isImmutable()) repository = new ImmutableAddonRepository(repository); this.repositories.add(repository);