@@ -4,7 +4,7 @@ import { ExecutionManager } from '@jitar/execution';
4
4
import { HealthManager } from '@jitar/health' ;
5
5
import { Logger , LogLevel } from '@jitar/logging' ;
6
6
import { MiddlewareManager } from '@jitar/middleware' ;
7
- import { DummyProvider , DummyRunner , LocalGateway , LocalRepository , LocalWorker , Proxy , RemoteBuilder , RemoteGateway , RemoteRepository } from '@jitar/services' ;
7
+ import { DummyProvider , DummyRunner , LocalGateway , LocalRepository , LocalWorker , LocalProxy , RemoteBuilder , RemoteGateway , RemoteRepository } from '@jitar/services' ;
8
8
import { SourcingManager } from '@jitar/sourcing' ;
9
9
10
10
import UnknownServiceConfigured from './errors/UnknownServiceConfigured' ;
@@ -41,7 +41,7 @@ export default class RuntimeBuilder
41
41
return new Server ( { proxy, sourcingManager, remoteBuilder, resourceManager, middlewareManager, healthManager, logger } ) ;
42
42
}
43
43
44
- #buildService( configuration : ServerConfiguration ) : Promise < Proxy >
44
+ #buildService( configuration : ServerConfiguration ) : Promise < LocalProxy >
45
45
{
46
46
if ( configuration . gateway !== undefined ) return this . #buildGatewayProxy( configuration . url , configuration . gateway ) ;
47
47
if ( configuration . worker !== undefined ) return this . #buildWorkerProxy( configuration . url , configuration . worker ) ;
@@ -52,28 +52,28 @@ export default class RuntimeBuilder
52
52
throw new UnknownServiceConfigured ( ) ;
53
53
}
54
54
55
- async #buildGatewayProxy( url : string , configuration : GatewayConfiguration ) : Promise < Proxy >
55
+ async #buildGatewayProxy( url : string , configuration : GatewayConfiguration ) : Promise < LocalProxy >
56
56
{
57
57
const provider = new DummyProvider ( ) ;
58
58
const runner = this . #buildLocalGateway( url , configuration ) ;
59
59
60
- return new Proxy ( { url, provider, runner } ) ;
60
+ return new LocalProxy ( { url, provider, runner } ) ;
61
61
}
62
62
63
- async #buildWorkerProxy( url : string , configuration : WorkerConfiguration ) : Promise < Proxy >
63
+ async #buildWorkerProxy( url : string , configuration : WorkerConfiguration ) : Promise < LocalProxy >
64
64
{
65
65
const provider = new DummyProvider ( ) ;
66
66
const runner = this . #buildLocalWorker( url , configuration ) ;
67
67
68
- return new Proxy ( { url, provider, runner } ) ;
68
+ return new LocalProxy ( { url, provider, runner } ) ;
69
69
}
70
70
71
- async #buildRepositoryProxy( url : string , configuration : RepositoryConfiguration ) : Promise < Proxy >
71
+ async #buildRepositoryProxy( url : string , configuration : RepositoryConfiguration ) : Promise < LocalProxy >
72
72
{
73
73
const provider = await this . #buildLocalRepository( url , configuration ) ;
74
74
const runner = new DummyRunner ( ) ;
75
75
76
- return new Proxy ( { url, provider, runner } ) ;
76
+ return new LocalProxy ( { url, provider, runner } ) ;
77
77
}
78
78
79
79
#buildLocalGateway( url : string , configuration : GatewayConfiguration ) : LocalGateway
@@ -118,20 +118,20 @@ export default class RuntimeBuilder
118
118
return new RemoteRepository ( { url, remote } ) ;
119
119
}
120
120
121
- async #buildProxy( url : string , configuration : ProxyConfiguration ) : Promise < Proxy >
121
+ async #buildProxy( url : string , configuration : ProxyConfiguration ) : Promise < LocalProxy >
122
122
{
123
123
const provider = this . #buildRemoteRepository( configuration . repository ) ;
124
124
const runner = this . #buildRemoteGateway( configuration . gateway ) ;
125
125
126
- return new Proxy ( { url, provider, runner } ) ;
126
+ return new LocalProxy ( { url, provider, runner } ) ;
127
127
}
128
128
129
- async #buildStandalone( url : string , configuration : StandaloneConfiguration ) : Promise < Proxy >
129
+ async #buildStandalone( url : string , configuration : StandaloneConfiguration ) : Promise < LocalProxy >
130
130
{
131
131
const provider = await this . #buildLocalRepository( url , configuration ) ;
132
132
const runner = this . #buildLocalWorker( url , configuration ) ;
133
133
134
- return new Proxy ( { url, provider, runner } ) ;
134
+ return new LocalProxy ( { url, provider, runner } ) ;
135
135
}
136
136
137
137
#buildResourceManager( setUp : string [ ] = [ ] , tearDown : string [ ] = [ ] ) : ResourceManager
0 commit comments