Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Google Guice では、関数を使用して複数のモジュールに基づいてインジェクターを作成できますcreateInjector。
createInjector
GWT.create私はGoogleGin でインジェクターをインスタンス化するために使用しているため、複数の に基づいて Ginjector を作成することは可能ですかAbstractGinModule?
GWT.create
AbstractGinModule
それができない場合、すべてのバインディングが同じ Module にならないようにコードを整理するにはどうすればよいでしょうか?
次のコードを使用して、複数のモジュールを使用するインジェクターを作成します。
@GinModules({ ClientDispatchModule.class, MyClientModule.class }) public interface MyAppGinjector extends Ginjector { AppPresenter getAppPresenter(); PlaceManager getPlaceManager(); EventBus getEventBus(); }