Skip to content

Instantly share code, notes, and snippets.

@wspringer
Created July 11, 2011 13:05
Show Gist options
  • Save wspringer/1075790 to your computer and use it in GitHub Desktop.
Save wspringer/1075790 to your computer and use it in GitHub Desktop.
Other attempt
// 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