Closed michael-becker closed 1 year ago
@michael-becker Thanks for reporting this issue. Can you create a PR please? A PR has a higher visibility (diff, ...). It will be awesome if the PR will contains a unit test.
A SNAPSHOT version is available on Maven central repository.
I tested the following calls:
The secons call to
getExtensions
results in an Exception:java.lang.IllegalStateException: org.springframework.context.annotation.AnnotationConfigApplicationContext@4a6facb0 has been closed already
I figured out the following workaround in SpringPlugin
By adding
applicationContext = null
a new application context is created when restarting the plugin. It should work but I am not 100% sure that there are no side effects so maybe you could have a quick check?