Package com.gitblit.manager

Examples of com.gitblit.manager.IRuntimeManager


  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here


  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();
View Full Code Here

      ContainerUtils.CVE_2007_0450.test(runtimeSettings);
    }

    // Manually configure IRuntimeManager
    logManager(IRuntimeManager.class);
    IRuntimeManager runtime = injector.get(IRuntimeManager.class);
    runtime.setBaseFolder(baseFolder);
    runtime.getStatus().isGO = goSettings != null;
    runtime.getStatus().servletContainer = context.getServerInfo();
    runtime.start();
    managers.add(runtime);

    // start all other managers
    startManager(injector, INotificationManager.class);
    startManager(injector, IUserManager.class);
View Full Code Here

    settings.overrideSetting(Keys.web.allowLuceneIndexing, false);
    settings.overrideSetting(Keys.git.enableGarbageCollection, false);
    settings.overrideSetting(Keys.git.enableMirroring, false);
    settings.overrideSetting(Keys.web.activityCacheDays, 0);

    IRuntimeManager runtimeManager = new RuntimeManager(settings, baseFolder).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, null).start();

    String serviceName = settings.getString(Keys.tickets.service, BranchTicketService.class.getSimpleName());
    if (StringUtils.isEmpty(serviceName)) {
      System.err.println(MessageFormat.format("Please define a ticket service in \"{0}\"", Keys.tickets.service));
      System.exit(1);
    }
    ITicketService ticketService = null;
    try {
      Class<?> serviceClass = Class.forName(serviceName);
      if (RedisTicketService.class.isAssignableFrom(serviceClass)) {
        // Redis ticket service
        ticketService = new RedisTicketService(runtimeManager, null, null, null, repositoryManager).start();
      } else if (BranchTicketService.class.isAssignableFrom(serviceClass)) {
        // Branch ticket service
        ticketService = new BranchTicketService(runtimeManager, null, null, null, repositoryManager).start();
      } else if (FileTicketService.class.isAssignableFrom(serviceClass)) {
        // File ticket service
        ticketService = new FileTicketService(runtimeManager, null, null, null, repositoryManager).start();
      } else {
        System.err.println("Unknown ticket service " + serviceName);
        System.exit(1);
      }
    } catch (Exception e) {
      e.printStackTrace();
      System.exit(1);
    }

    ticketService.reindex();
    ticketService.stop();
    repositoryManager.stop();
    runtimeManager.stop();
  }
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);
    XssFilter xssFilter = new AllowXssFilter();
    IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);
    XssFilter xssFilter = new AllowXssFilter();
    IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();
View Full Code Here

public class ProxyFilter extends DaggerFilter {
  private List<HttpRequestFilter> filters;

  @Override
  protected void inject(ObjectGraph dagger, FilterConfig filterConfig) throws ServletException {
    IRuntimeManager runtimeManager = dagger.get(IRuntimeManager.class);
    IPluginManager pluginManager = dagger.get(IPluginManager.class);

    filters = pluginManager.getExtensions(HttpRequestFilter.class);
    for (HttpRequestFilter f : filters) {
      // wrap the filter config for Gitblit settings retrieval
View Full Code Here

      ContainerUtils.CVE_2007_0450.test(runtimeSettings);
    }

    // Manually configure IRuntimeManager
    logManager(IRuntimeManager.class);
    IRuntimeManager runtime = injector.get(IRuntimeManager.class);
    runtime.setBaseFolder(baseFolder);
    runtime.getStatus().isGO = goSettings != null;
    runtime.getStatus().servletContainer = context.getServerInfo();
    runtime.start();
    managers.add(runtime);

    // create the plugin manager instance but do not start it
    loadManager(injector, IPluginManager.class);
View Full Code Here

  @Override
  protected ITicketService getService(boolean deleteAll) throws Exception {

    IStoredSettings settings = getSettings(deleteAll);
    XssFilter xssFilter = new AllowXssFilter();
    IRuntimeManager runtimeManager = new RuntimeManager(settings, xssFilter).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager, pluginManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, pluginManager, userManager).start();
View Full Code Here

TOP

Related Classes of com.gitblit.manager.IRuntimeManager

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.