Can the Cake Pattern be used for non-singleton style dependencies?
问题 Most of the examples of the Cake Pattern I've come across appear to consider dependencies as singleton type services; where there is only one instance of each type in the final assembly of components. Is it possible to write a configuration that has more than one instance of a particular type, perhaps configured in different ways, when using the Cake Pattern for dependency injection? Consider the following components. Generic HTTP service: trait HttpService { def get(query:String):String }