If you have a List
of LoanWrapper
s, apply them and then the
functions.
If you have a List
of LoanWrapper
s, apply them and then the
functions. For example:
val firstWrapper = new TimerWrapper() val secondWrapper = new TransactionWrapper() CommonLoanWrapper(firstWrapper :: secondWrapper :: Nil) { // do some things })
The inner code will be wrapped first in the timer and then in the transaction, so that the timer will time the results of running the code inside a transaction.