gin

    -1熱度

    2回答

    幫助這個錯誤請! 編譯模塊com.myapp.nN 掃描其他依賴關係:文件:/ C:/development/n5fix/nube/src/com/myapp/n/client/N.java 計算關於'的所有可能的重新綁定結果com.diddiasix.nube.client.gin.GinServiceInjector' 重新綁定com.myapp.n.client.gin.GinService

    3熱度

    1回答

    我正在使用GWTP(GWP 2.3的GWP框架)。 我想使用我的演示者分解GWT代碼。 我知道關於Presenters中的@ProxyCodeSplit註釋。 Like below @ProxyCodeSplit @UseGatekeeper(LoggedInGatekeeper.class) public interface MyProxy extends Proxy<MainPagePre

    2熱度

    1回答

    有沒有在小部件中使用依賴注入的方法,它是通過ui綁定創建的? 假設我有一個簡單的微件(在包com.example.client.ui.widget): public class Foo extends Composite { private final EventBus eventBus; @Inject public Foo(final EventBus eve

    0熱度

    1回答

    我正在使用MVP體系結構(或至少近似於一個)並具有呈現器的層次結構,並具有類似的嵌套視圖。爲了簡單起見,我會堅持前兩個級別: AppPresenter/AppView在頂層。第二級的DocumentListPresenter/DocumentListView和TranslationPresenter/TranslationView。 這兩個二級視圖作爲窗口小部件添加到頂級視圖的面板上,但此時這是通

    3熱度

    1回答

    我有以下代碼 public class AppGinModule extends AbstractGinModule{ @Override protected void configure() { bind(ContactListView.class).to(ContactListViewImpl.class); bind(ContactDetailVi

    0熱度

    1回答

    我可以動態添加綁定到GIN模塊嗎? 例如,具有一個模塊「ExampleModule,」並調用一個靜態方法就可以了,例如: bind (Test.class, TestImpl.class); 和GIN自動執行綁定? 或者可能使用註釋? 在此先感謝。

    7熱度

    2回答

    我有一個web應用程序使用GIN在入口點注入依賴關係。 private InjectorService injector = GWT.create(InjectorService.class); @GinModules({PlaceContollerInject.class, RootViewInject.class}) public interface InjectorService ex

    1熱度

    1回答

    我有一個自定義的延遲綁定(重新綁定實現),實例化對象。我想在由GIN實現的GWT.create()返回的實例中有一些依賴項(@Inject註釋的setter方法)。這可能嗎? 因此,考慮到這樣的代碼:如果 Foo foo = GWT.create(Foo.class); Foo的最終實現有: @Inject public void setBar(Bar bar) { ... }

    2熱度

    1回答

    我想動態生成一些事件處理程序集(使用com.google.gwt.core.ext.Generator子類)。整個生成過程工作正常,我生成的處理程序通過setter注入(@Inject註釋)接受EventBus,並且整個想法是這些自動生成的處理程序將自己註冊到(注入的)EventBus中。問題是所有這些處理程序必須以某種方式實例化。在他們被綁定到GIN模塊之前,GIN對他們一無所知;類似如下: b

    38熱度

    4回答

    確實,javax.inject註釋可以直接替代com.google.inject?因此,如果我將所有當前的guice/gin註釋替換爲javax.inject中的那些註釋,我的應用程序將編譯並運行得很好嗎? 首先,javax.inject覆蓋了google.inject覆蓋的所有基礎嗎?