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

com.lightbend.lagom.sbt.server.ReloadableServer Maven / Gradle / Ivy

There is a newer version: 1.3.11
Show newest version
/*
 * 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(); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy