Results 1 - 4 of 4 results out of about 720 pages. (0.23 seconds)
- guice/RefactoringToGuice/part3 . . . 1 match
- ...パラメータを一緒にするんだ
(訳注:そしてコンストラクタ引数として引き渡す)。
もしGuice2.0が待てないのであれば、Guice1.1では同じようなAPIであるAssistedInjectというのが使えるよ。
'''訳注:実際の2.0リリースでは仕様がかなり異なっている。[[guice/FactoryProvider|ProviderとFactory...
- guice/Manual/FAQ . . . 1 match
- ...c class Example {
@Inject
public Example(Thing.Factory factory) { ... }
}
}}}
AssistedInjectを使ってファクトリのボイラープレートコード(決まりきったコード)を削除することを考慮してください。
== 二つの同じような、しかし少しだけ違うオブジェクトツリーを作...
- guice/Manual/BestPractices/MinimizeMutability . . . 1 match
- ...u need to initialize an instance that is not constructed by Guice. Extensions like
AssistedInject
and Multibinder use method injection to initialize bound objects.
フィールドインジェクションは...
- guice/Manual . . . 1 match
- ...tomInjections|カスタムインジェクション]]
* Third Party Modules
* 拡張
* Extending Guice
* AssistedInject
* [[guice/Manual/Extensions/Multibindings|マルチバインディング]]
* [[guice/Manual/Extens...