Created
August 13, 2017 16:35
-
-
Save uberto/8758b3fdcbb31d640a3858303f30444c to your computer and use it in GitHub Desktop.
Owner configuration interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.aeonbits.owner.Config; | |
import org.aeonbits.owner.Config.Sources; | |
import java.util.List; | |
/** | |
* Keeps the configuration values for the server | |
*/ | |
@Sources({ "file:config.properties" }) | |
public interface ServerConfig extends Config { | |
@DefaultValue("8008") | |
int port(); | |
List<String> users(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment