summaryrefslogtreecommitdiffstats
path: root/src/main/scala/myapp/cake/container.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/myapp/cake/container.scala')
-rw-r--r--src/main/scala/myapp/cake/container.scala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/scala/myapp/cake/container.scala b/src/main/scala/myapp/cake/container.scala
index 7c40880..6437c8b 100644
--- a/src/main/scala/myapp/cake/container.scala
+++ b/src/main/scala/myapp/cake/container.scala
@@ -42,7 +42,8 @@ class Container (
username: String = "doy",
password: String = "blah"
) extends HasApplication with HasLogger with HasDatabase {
- lazy val application = new Application
- lazy val logger = new Logger(logFileName)
- lazy val database = Database.connect(dsn, username, password)
+ def application = new Application
+ // def logger = new Logger(logFileName) // non-singleton
+ lazy val logger = new Logger(logFileName) // singleton
+ def database = Database.connect(dsn, username, password)
}