本文整理汇总了Java中org.eclipse.che.ide.rest.AsyncRequestFactory类的典型用法代码示例。如果您正苦于以下问题:Java AsyncRequestFactory类的具体用法?Java AsyncRequestFactory怎么用?Java AsyncRequestFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AsyncRequestFactory类属于org.eclipse.che.ide.rest包,在下文中一共展示了AsyncRequestFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CountLinesAction
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
* Constructor
*
* @param appContext the IDE application context
* @param resources the JSON Example resources that contain the action icon
* @param asyncRequestFactory asynchronous request factory for creating the server request
* @param notificationManager the notification manager used to display the lines of code per file
*/
@Inject
public CountLinesAction(
AppContext appContext,
JsonExampleResources resources,
AsyncRequestFactory asyncRequestFactory,
NotificationManager notificationManager) {
super(
appContext,
"Count JSON Lines of Code",
"Counts lines of code for all JSON Files in the project",
resources.icon());
this.appContext = appContext;
this.asyncRequestFactory = asyncRequestFactory;
this.notificationManager = notificationManager;
this.unmarshaller = new StringMapUnmarshaller();
}
示例2: MyServiceClient
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
* Constructor.
*
* @param appContext the {@link AppContext}
* @param asyncRequestFactory the {@link AsyncRequestFactory} that is used to create requests
* @param loaderFactory the {@link LoaderFactory} for displaying a message while waiting for a
* response
*/
@Inject
public MyServiceClient(
final AppContext appContext,
final AsyncRequestFactory asyncRequestFactory,
final LoaderFactory loaderFactory) {
this.appContext = appContext;
this.asyncRequestFactory = asyncRequestFactory;
this.loaderFactory = loaderFactory;
}
示例3: ProjectTypeRegistryImpl
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public ProjectTypeRegistryImpl(
AsyncRequestFactory asyncRequestFactory,
DtoUnmarshallerFactory dtoUnmarshallerFactory,
AppContext appContext,
EventBus eventBus) {
this.asyncRequestFactory = asyncRequestFactory;
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.appContext = appContext;
this.eventBus = eventBus;
projectTypes = new HashMap<>();
eventBus.addHandler(
BasicIDEInitializedEvent.TYPE,
e -> {
if (RUNNING == appContext.getWorkspace().getStatus()) {
registerProjectTypes();
}
});
eventBus.addHandler(WsAgentServerRunningEvent.TYPE, e -> registerProjectTypes());
eventBus.addHandler(WsAgentServerStoppedEvent.TYPE, e -> projectTypes.clear());
}
示例4: MainPagePresenter
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public MainPagePresenter(
DtoUnmarshallerFactory dtoUnmarshallerFactory,
NotificationManager notificationManager,
CoreLocalizationConstant locale,
MainPageView view,
ImportWizardRegistry importWizardRegistry,
AppContext appContext,
AsyncRequestFactory asyncRequestFactory) {
super();
this.view = view;
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.notificationManager = notificationManager;
this.locale = locale;
this.importWizardRegistry = importWizardRegistry;
this.appContext = appContext;
this.asyncRequestFactory = asyncRequestFactory;
view.setDelegate(this);
}
示例5: AppListPresenter
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
* Creates an App list part presenter with GWT injected App list view, login presenter, and extension resources
*/
@Inject
public AppListPresenter(@Named("restContext") String restContext, AppListView appListView, @Assisted String title,
LoginPresenter loginPresenter, AppFactoryExtensionResources extensionResources,
DtoFactory dtoFactory, DtoUnmarshallerFactory unmarshallerFactory, AsyncRequestFactory
requestFactory, NotificationManager notificationManager) {
this.appListView = appListView;
this.appListView.setDelegate(this);
this.appListView.setTitle(title);
this.title = title;
this.loginPresenter = loginPresenter;
this.extensionResources = extensionResources;
this.dtoFactory = dtoFactory;
this.unmarshallerFactory = unmarshallerFactory;
this.requestFactory = requestFactory;
this.restContext = restContext;
this.notificationManager = notificationManager;
}
示例6: JsonExampleCodeAssistClient
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
/**
* Constructor.
*
* @param appContext the IDE application context
* @param asyncRequestFactory asynchronous request factory for creating the server request
* @param loaderFactory the loader factory for displaying a message during loading
*/
@Inject
public JsonExampleCodeAssistClient(
AppContext appContext, AsyncRequestFactory asyncRequestFactory, LoaderFactory loaderFactory) {
this.appContext = appContext;
this.asyncRequestFactory = asyncRequestFactory;
this.loaderFactory = loaderFactory;
}
示例7: BitbucketClientService
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected BitbucketClientService(
AppContext appContext,
LoaderFactory loaderFactory,
AsyncRequestFactory asyncRequestFactory,
DtoUnmarshallerFactory dtoUnmarshallerFactory,
@RestContext String baseUrl) {
this.appContext = appContext;
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.loaderFactory = loaderFactory;
this.asyncRequestFactory = asyncRequestFactory;
this.baseUrl = baseUrl;
}
示例8: MicrosoftServiceClientImpl
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public MicrosoftServiceClientImpl(
DtoUnmarshallerFactory dtoUnmarshallerFactory,
AsyncRequestFactory asyncRequestFactory,
AppContext appContext,
LoaderFactory loaderFactory) {
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.asyncRequestFactory = asyncRequestFactory;
this.appContext = appContext;
this.loaderFactory = loaderFactory;
}
示例9: configure
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Override
public void configure() {
bind(KeycloakProvider.class).asEagerSingleton();
bind(AsyncRequestFactory.class)
.to(org.eclipse.che.multiuser.keycloak.ide.KeycloakAsyncRequestFactory.class);
bind(SecurityTokenProvider.class).to(KeycloakSecurityTokenProvider.class);
}
示例10: DebuggerServiceClientImpl
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
protected DebuggerServiceClientImpl(
AppContext appContext,
LoaderFactory loaderFactory,
AsyncRequestFactory asyncRequestFactory,
DtoUnmarshallerFactory dtoUnmarshallerFactory) {
this.loaderFactory = loaderFactory;
this.asyncRequestFactory = asyncRequestFactory;
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.appContext = appContext;
}
示例11: OAuthServiceClient
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public OAuthServiceClient(
AppContext appContext,
AsyncRequestFactory asyncRequestFactory,
DtoUnmarshallerFactory unmarshallerFactory) {
this.asyncRequestFactory = asyncRequestFactory;
this.restContext = appContext.getMasterApiEndpoint() + "/oauth";
this.unmarshallerFactory = unmarshallerFactory;
}
示例12: ProjectServiceClient
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
ProjectServiceClient(
LoaderFactory loaderFactory,
AsyncRequestFactory reqFactory,
DtoFactory dtoFactory,
DtoUnmarshallerFactory unmarshaller,
AppContext appContext) {
this.loaderFactory = loaderFactory;
this.reqFactory = reqFactory;
this.dtoFactory = dtoFactory;
this.unmarshaller = unmarshaller;
this.appContext = appContext;
}
示例13: ProjectTemplateRegistryImpl
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
ProjectTemplateRegistryImpl(
DtoUnmarshallerFactory dtoUnmarshallerFactory,
AsyncRequestFactory asyncRequestFactory,
AppContext appContext) {
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.asyncRequestFactory = asyncRequestFactory;
this.appContext = appContext;
templateDescriptors = new HashMap<>();
}
示例14: FactoryServiceClientImpl
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
public FactoryServiceClientImpl(
AsyncRequestFactory asyncRequestFactory,
DtoUnmarshallerFactory unmarshallerFactory,
LoaderFactory loaderFactory) {
this.asyncRequestFactory = asyncRequestFactory;
this.unmarshallerFactory = unmarshallerFactory;
this.loaderFactory = loaderFactory;
}
示例15: WorkspaceServiceClient
import org.eclipse.che.ide.rest.AsyncRequestFactory; //导入依赖的package包/类
@Inject
private WorkspaceServiceClient(
AppContext appContext,
DtoUnmarshallerFactory dtoUnmarshallerFactory,
DtoFactory dtoFactory,
AsyncRequestFactory asyncRequestFactory,
LoaderFactory loaderFactory) {
this.dtoUnmarshallerFactory = dtoUnmarshallerFactory;
this.dtoFactory = dtoFactory;
this.asyncRequestFactory = asyncRequestFactory;
this.loaderFactory = loaderFactory;
this.baseHttpUrl = appContext.getMasterApiEndpoint() + "/workspace";
}