Skip to content

Instantly share code, notes, and snippets.

@wspringer
Created July 11, 2011 12:59
Show Gist options
  • Save wspringer/1075779 to your computer and use it in GitHub Desktop.
Save wspringer/1075779 to your computer and use it in GitHub Desktop.
How we thought it would work?
// Trait
trait EventLoggerComponent {
val eventProcessor: EventProcessor
trait EventLogger {
}
}
// Context
class Context extends ... with ... with EventLoggerComponent {
val processor: EventProcessor = // the real one
new SearchService
}
// SearchService #1
trait SearchServiceComponent {
class SearchService extends EventLogger {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment