@@ -27,11 +27,11 @@ let SimpleUCManager = class SimpleUCManager {
2727 ucExecChecker ;
2828 ucInputFilesProcessor ;
2929 ucInputValidator ;
30- ucInitProvider ;
31- ucMainProvider ;
30+ ucInitFactory ;
31+ ucMainFactory ;
3232 // WARNING : This property makes this class "thread unsafe". Be careful how you inject it into your components.
3333 tx ;
34- constructor ( ucClientConfirmManager , clockManager , cryptoManager , logger , ucDataStore , ucExecChecker , ucInputFilesProcessor , ucInputValidator , ucInitProvider , ucMainProvider ) {
34+ constructor ( ucClientConfirmManager , clockManager , cryptoManager , logger , ucDataStore , ucExecChecker , ucInputFilesProcessor , ucInputValidator , ucInitFactory , ucMainFactory ) {
3535 this . ucClientConfirmManager = ucClientConfirmManager ;
3636 this . clockManager = clockManager ;
3737 this . cryptoManager = cryptoManager ;
@@ -40,8 +40,8 @@ let SimpleUCManager = class SimpleUCManager {
4040 this . ucExecChecker = ucExecChecker ;
4141 this . ucInputFilesProcessor = ucInputFilesProcessor ;
4242 this . ucInputValidator = ucInputValidator ;
43- this . ucInitProvider = ucInitProvider ;
44- this . ucMainProvider = ucMainProvider ;
43+ this . ucInitFactory = ucInitFactory ;
44+ this . ucMainFactory = ucMainFactory ;
4545 this . tx = undefined ;
4646 }
4747 async commitTx ( ) {
@@ -80,7 +80,7 @@ let SimpleUCManager = class SimpleUCManager {
8080 if ( server === undefined ) {
8181 await this . ucInputFilesProcessor . exec ( { uc } ) ;
8282 }
83- const main = ( await this . ucMainProvider ( client . main ) ) ;
83+ const main = ( await this . ucMainFactory ( client . main ) ) ;
8484 const streamOpts = opts ?. stream ;
8585 const output = await main . exec ( {
8686 opts : {
@@ -113,7 +113,7 @@ let SimpleUCManager = class SimpleUCManager {
113113 }
114114 this . ucInputValidator . exec ( { uc } ) ;
115115 await this . ucInputFilesProcessor . exec ( { uc } ) ;
116- const main = ( await this . ucMainProvider ( server . main ) ) ;
116+ const main = ( await this . ucMainFactory ( server . main ) ) ;
117117 const output = main . exec ( {
118118 opts : {
119119 stream : opts ?. stream ,
@@ -132,7 +132,7 @@ let SimpleUCManager = class SimpleUCManager {
132132 return ;
133133 }
134134 this . logger . info ( 'Initializing ucd' , { name : metadata . name } ) ;
135- const init = ( await this . ucInitProvider ( server . init ) ) ;
135+ const init = ( await this . ucInitFactory ( server . init ) ) ;
136136 await init . exec ( ) ;
137137 }
138138 async startTx ( ) {
@@ -179,8 +179,8 @@ SimpleUCManager = __decorate([
179179 __param ( 5 , inject ( UCExecChecker ) ) ,
180180 __param ( 6 , inject ( UCInputFilesProcessor ) ) ,
181181 __param ( 7 , inject ( UCInputValidator ) ) ,
182- __param ( 8 , inject ( 'Provider <UCInit>' ) ) ,
183- __param ( 9 , inject ( 'Provider <UCMain>' ) ) ,
182+ __param ( 8 , inject ( 'Factory <UCInit>' ) ) ,
183+ __param ( 9 , inject ( 'Factory <UCMain>' ) ) ,
184184 __metadata ( "design:paramtypes" , [ Object , Object , Object , Object , Object , UCExecChecker ,
185185 UCInputFilesProcessor ,
186186 UCInputValidator , Function , Function ] )
0 commit comments