Created
July 11, 2011 12:59
-
-
Save wspringer/1075779 to your computer and use it in GitHub Desktop.
How we thought it would work?
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
// 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