com.lightbend.lagom.sbt.server.ReloadableServer Maven / Gradle / Ivy
/*
* Copyright (C) 2016 Lightbend Inc.
*/
package com.lightbend.lagom.sbt.server;
import java.net.InetSocketAddress;
import play.core.server.ServerWithStop;
/**
* A server that can reload the running application.
*/
public abstract class ReloadableServer implements ServerWithStop {
private final ServerWithStop server;
public ReloadableServer(ServerWithStop server) {
this.server = server;
}
/** Executes application's reloading.*/
public abstract void reload();
public void stop() { server.stop(); }
public InetSocketAddress mainAddress() { return server.mainAddress(); }
}