Consider the following class:
class MongoDumpBuilder (recordingId: String, parquetService: ParquetService) {
...
}
I want to inject the parquetService, the problem is that I want to create MongoDumpBuilder as follows:
NOTE: I want to pass recordingId.stringify to the class
new MongoDumpBuilder(recordingId.stringify)
.withPacificEvents(pacificEvents)
.withAssets(assets)
.withTransactions(transactions)
.withReports(reports)
.withExpenses(expenses)
.build()
But this will work only with:
new MongoDumpBuilder(recordingId.stringify, parquetService)
If i will do MongoDumpBuilder with Inject i cannot create it
class MongoDumpBuilder @Inject()(recordingId: String, parquetService: ParquetService) {
???
}
Any ideas how to solve it?