use of org.ovirt.engine.ui.frontend.gwtservices.GenericApiGWTServiceAsync in project ovirt-engine by oVirt.
the class BaseSystemModule method getGenericApiGWTService.
@Provides
@Singleton
public GenericApiGWTServiceAsync getGenericApiGWTService(final XsrfRpcRequestBuilder requestBuilder) {
// no need to use GenericApiGWTServiceAsync.Util as this is GIN-managed singleton anyway
GenericApiGWTServiceAsync service = GWT.create(GenericApiGWTService.class);
// cast to ServiceDefTarget and set RPC request builder as needed
((ServiceDefTarget) service).setRpcRequestBuilder(requestBuilder);
return service;
}
Aggregations