Skip to content

Instantly share code, notes, and snippets.

@uberto
Created August 13, 2017 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uberto/a421fde1246cdf88d3cf3f64cbe1aff7 to your computer and use it in GitHub Desktop.
Save uberto/a421fde1246cdf88d3cf3f64cbe1aff7 to your computer and use it in GitHub Desktop.
Use of Owner property
public static void main(String[] args){
ServerConfig config = ConfigFactory.create(ServerConfig.class);
List<Calculation> routes = Calculations.getAllCalculations(config.users());
WebServer.start(config.port(), routes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment