Skip to content

Instantly share code, notes, and snippets.

@andyczerwonka
Last active December 1, 2016 22:49
Show Gist options
  • Save andyczerwonka/043a2d9fa3b3a8a4cb8024f8eaffdcfc to your computer and use it in GitHub Desktop.
Save andyczerwonka/043a2d9fa3b3a8a4cb8024f8eaffdcfc to your computer and use it in GitHub Desktop.
object ApplicationConfiguration {
private[this] lazy val configuration = expensiveLoadOperation()
def get(excuse: Controller): ApplicationConfiguration = configuration
def get(excuse: ImportProvider): ApplicationConfiguration = configuration
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment