GWTP代码拆分

GWTP代码拆分,gwt,gwt-gin,gwt-platform,Gwt,Gwt Gin,Gwt Platform,我在GWT2.3中使用GWTP(谷歌的MVP框架)。 我想对演示者使用GWT代码拆分 我知道演示者中的@ProxyCodeSplit注释。如下 @ProxyCodeSplit @UseGatekeeper(LoggedInGatekeeper.class) public interface MyProxy extends Proxy<MainPagePresenter> { } @ProxyCodeSplit @UseGatekeeper(LoggedInGatekeeper.cl

我在GWT2.3中使用GWTP(谷歌的MVP框架)。 我想对演示者使用GWT代码拆分

我知道演示者中的
@ProxyCodeSplit
注释。如下

@ProxyCodeSplit
@UseGatekeeper(LoggedInGatekeeper.class)
public interface MyProxy extends Proxy<MainPagePresenter> {
}
@ProxyCodeSplit
@UseGatekeeper(LoggedInGatekeeper.class)
公共接口MyProxy扩展了Proxy{
}

这是否足够?或者我需要找出GWT代码拆分,它提供了对GWT.runAsync的调用,就像是不,只要出现相应的演示者,GWTP就会为您处理调用GWT.runAsync的问题。
但是,请确保在
ginject
中使用
AsyncProvider

@GinModules({ MyModule.class })
public interface MyGinjector extends Ginjector {
  PlaceManager getPlaceManager();
  EventBus getEventBus();
  AsyncProvider<MainPagePresenter> getMainPagePresenter();
}
@GinModules({MyModule.class})
公共接口MyGinject扩展了Ginject{
PlaceManager getPlaceManager();
EventBus getEventBus();
AsyncProvider getMainPagePresenter();
}

谢谢你。我只是想确认一下。“Ginject”中已经有“AsyncProvider”和标记为“@ProxyCodeSplit”的演示者。它正在工作。因此,我接受您的回答。为了进一步确认,您还可以使用Firebug或Chrome Developer工具,在导航到标有
@ProxyCodeSplit