Package com.google.gerrit.server.config

Examples of com.google.gerrit.server.config.FactoryModule


  @Override
  public int run() throws Exception {
    dbInjector = createDbInjector(SINGLE_USER);
    manager.add(dbInjector);
    manager.start();
    dbInjector.createChildInjector(new FactoryModule() {
      @Override
      protected void configure() {
        factory(PrologCompiler.Factory.class);
      }
    }).injectMembers(this);
View Full Code Here


    }
    return 0;
  }

  private Factory shellFactory() {
    return dbInjector.createChildInjector(new FactoryModule() {
      @Override
      protected void configure() {
        factory(QueryShell.Factory.class);
      }
    }).getInstance(QueryShell.Factory.class);
View Full Code Here

            .toProvider(CanonicalWebUrlProvider.class).in(Scopes.SINGLETON);

        install(AccountCacheImpl.module());
        install(GroupCacheImpl.module());
        install(new DefaultCacheFactory.Module());
        install(new FactoryModule() {
          @Override
          protected void configure() {
            factory(CreateCodeReviewNotes.Factory.class);
          }
        });
View Full Code Here

    super(UiRpcModule.PREFIX);
  }

  @Override
  protected void configureServlets() {
    install(new FactoryModule() {
      @Override
      protected void configure() {
        factory(AgreementInfoFactory.Factory.class);
        factory(CreateGroup.Factory.class);
        factory(DeleteExternalIds.Factory.class);
View Full Code Here

    super(UiRpcModule.PREFIX);
  }

  @Override
  protected void configureServlets() {
    install(new FactoryModule() {
      @Override
      protected void configure() {
        factory(AddReviewerHandler.Factory.class);
        factory(RemoveReviewerHandler.Factory.class);
        factory(PatchScriptFactory.Factory.class);
View Full Code Here

    super(UiRpcModule.PREFIX);
  }

  @Override
  protected void configureServlets() {
    install(new FactoryModule() {
      @Override
      protected void configure() {
        factory(AbandonChangeHandler.Factory.class);
        factory(RestoreChangeHandler.Factory.class);
        factory(RevertChange.Factory.class);
View Full Code Here

    super(UiRpcModule.PREFIX);
  }

  @Override
  protected void configureServlets() {
    install(new FactoryModule() {
      @Override
      protected void configure() {
        factory(AddBranch.Factory.class);
        factory(ChangeProjectAccess.Factory.class);
        factory(ReviewProjectAccess.Factory.class);
View Full Code Here

      IOException {
    db.create();

    final File site = new File(UUID.randomUUID().toString());
    final SitePaths paths = new SitePaths(site);
    SchemaUpdater u = Guice.createInjector(new FactoryModule() {
      @Override
      protected void configure() {
        bind(new TypeLiteral<SchemaFactory<ReviewDb>>() {}).toInstance(db);
        bind(SitePaths.class).toInstance(paths);
        install(new SchemaVersion.Module());
View Full Code Here

      @Override
      public void onCreateProject(Project.NameKey newProjectName) {
      }
    };

    Injector injector = Guice.createInjector(new FactoryModule() {
      @Override
      protected void configure() {
        bind(Config.class)
            .annotatedWith(GerritServerConfig.class)
            .toInstance(new Config());
View Full Code Here

TOP

Related Classes of com.google.gerrit.server.config.FactoryModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.