Skip to content

Instantly share code, notes, and snippets.

@Mortimerp9
Created May 6, 2014 13:27
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 Mortimerp9/1f34d331d60738cd042f to your computer and use it in GitHub Desktop.
Save Mortimerp9/1f34d331d60738cd042f to your computer and use it in GitHub Desktop.
class MyArgs extends FieldArgs with ConfigArgs {
override val configPrefix = "com.example.config"
@Required
var env: String = "dev"
var timeout: Option[Duration] = None
@Required
var db1: SQLArgs = new SQLArgs {}
@Required
var db2: SQLArgs = new SQLArgs {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment