タグ

Guiceに関するmura-_-miのブックマーク (2)

  • Scala用DIライブラリ3種を雑に比較してみた(Guice, Airframe, MacWire)

    前書き Airframe Meetup #1 - connpassへ参加せてもらってなかなか良い刺激になったので、一念発起してScala用のDIライブラリの比較記事を書くことにしました。 が、ぶっちゃけるとAirframe: DI Framework Comparisonの記事のほうが100倍ぐらいDI真面目に使っている人がこの記事の10倍くらい時間かけて書いているに違いないのでそっち読んだほうがよいです。 この記事は多様かつ様々な視点からの意見があったほうがよいという背景から書いています。 ※注意: この記事を書いている人間はGuice, Airframe, MacWireそれぞれの使用時間が3時間未満なのでその程度の知識の人間が書いている前提で読んでください ドキュメント(仕様)を読んで比較して気づくこと Airframe: DI Framework Comparisonを参考にしつつ

    Scala用DIライブラリ3種を雑に比較してみた(Guice, Airframe, MacWire)
  • Overriding Binding in Guice

    I've just started playing with Guice, and a use-case I can think of is that in a test I just want to override a single binding. I think I'd like to use the rest of the production level bindings to ensure everything is setup correctly and to avoid duplication. So imagine I have the following Module public class ProductionModule implements Module { public void configure(Binder binder) { binder.bind(

    Overriding Binding in Guice
  • 1