Created
July 11, 2011 13:05
-
-
Save wspringer/1075790 to your computer and use it in GitHub Desktop.
Other attempt
This file contains 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
// SearchService #2 | |
class SearchService(implicit eventProcessor: EventProcessor) extends EventLogger | |
// EventLogger | |
trait EventLogger { | |
val eventProcessor: EventProcessor | |
} | |
// Context | |
class Context extends ... with ... with .. { | |
implicit val eventProcessor: EventProcessor = ... // the real one | |
val service = new SearchService() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment