レベルエンター山本大のブログ

面白いプログラミング教育を若い人たちに

BLOCKVROCKリファレンス目次はこちら

Guice API翻訳 ■com.google.inject.Moduleインターフェイス

Interface Module


com.google.inject.Module
All Known Implementing Classes:
AbstractModule, ServletModule


public interface Module

A module contributes configuration information, typically interface bindings, which will be used to create an Injector. A Guice-based application is ultimately composed of little more than a set of Modules and some bootstrapping code.

モジュールは、設定情報を提供します。通常、Injectorによって作られたbindingインターフェイスに対して提供します。Guiceベースのアプリケーションは、結局のところモジュールの集合と単独で起動する幾つかのコードに過ぎないということに落ち着きます。

Your Module classes can use a more streamlined syntax by extending AbstractModule rather than implementing this interface directly.

Moduleクラスを作るときは、インターフェイスを直接実装するよりも、AbstractModule を継承することで、より合理的な構文とすることができます。

                                                                                                                                                              • -
Method Summary
void configure(Binder binder) Contributes bindings and other configurations for this module to a Binder. このモジュールへのbindingとその他の設定をBinderに提供します。