@theia/core
Version:
Theia is a cloud & desktop IDE framework implemented in TypeScript.
47 lines • 2.31 kB
JavaScript
// *****************************************************************************
// Copyright (C) 2018 TypeFox and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0.
//
// This Source Code may also be made available under the following Secondary
// Licenses when the conditions for such availability set forth in the Eclipse
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
// with the GNU Classpath Exception which is available at
// https://www.gnu.org/software/classpath/license.html.
//
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
// *****************************************************************************
import { __decorate } from "tslib";
import { injectable, decorate, unmanaged, inject } from 'inversify';
import { RpcProxyFactory } from '../../common/messaging/proxy-factory.js';
import { RemoteConnectionProvider, ServiceConnectionProvider } from './service-connection-provider.js';
decorate(injectable(), RpcProxyFactory);
decorate(unmanaged(), RpcProxyFactory, 0);
/**
* @deprecated This class serves to keep API compatibility for a while.
* Use the {@linkcode RemoteConnectionProvider} as the injection symbol and {@linkcode ServiceConnectionProvider} as the type instead.
*/
let WebSocketConnectionProvider = class WebSocketConnectionProvider {
static createProxy(container, path, arg) {
return ServiceConnectionProvider.createProxy(container, path, arg);
}
static createLocalProxy(container, path, arg) {
return ServiceConnectionProvider.createLocalProxy(container, path, arg);
}
static createHandler(container, path, arg) {
return ServiceConnectionProvider.createHandler(container, path, arg);
}
createProxy(path, factory) {
return this.remoteConnectionProvider.createProxy(path, factory);
}
};
__decorate([
inject(RemoteConnectionProvider)
], WebSocketConnectionProvider.prototype, "remoteConnectionProvider", void 0);
WebSocketConnectionProvider = __decorate([
injectable()
], WebSocketConnectionProvider);
export { WebSocketConnectionProvider };
//# sourceMappingURL=ws-connection-provider.js.map