All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zhengframework.web.WebServerService Maven / Gradle / Ivy

There is a newer version: 1.8.0
Show newest version
package com.github.zhengframework.web;

import com.github.zhengframework.core.Service;
import javax.inject.Inject;
import javax.inject.Singleton;

@Singleton
public class WebServerService implements Service {

  private final WebServer server;

  @Inject
  public WebServerService(WebServer server) {
    this.server = server;
  }

  @Override
  public int priority() {
    return Integer.MIN_VALUE;
  }

  @Override
  public void start() throws Exception {
    server.start();
  }

  @Override
  public void stop() throws Exception {
    server.stop();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy