Closed vdshb closed 9 months ago
Hello, can you reopen it on https://github.com/InsertKoinIO/koin-annotations repo please? 🙏
Done: https://github.com/InsertKoinIO/koin-annotations/issues/112
Feel free to close this one if there is no need for it.
thx
Is your feature request related to a problem? Please describe.
My bean is defined with annotation:
I want to define bean/module close strategy to it. Effecitvely I want to run
sqlDriver.close()
duringKoinApplication::close
call.Describe the solution you'd like The design might be something like this:
Describe alternatives you've considered If bean is
AutoClosable
the bonus design might be something like this:But conflicts resolution strategy with
@OnClose
and close order of dependant beans must be designed additionally.Target Koin project Koin-Annotations