Right now it is not possible to unregister all beans in runtime. I tried to implement it, however it is not possible to unregister bean if other bean keep instance of bean which we want to unregister - exception is being thrown as Kernel tries to set NULL as value (which is often forbidden). We need this to gracefully shutdown some components with separate kernels and gracefully shutdown root kernel.
wojciech.kapcia@tigase.netbatch edited6 months ago
Right now it is not possible to unregister all beans in runtime. I tried to implement it, however it is not possible to unregister bean if other bean keep instance of bean which we want to unregister - exception is being thrown as Kernel tries to set NULL as value (which is often forbidden). We need this to gracefully shutdown some components with separate kernels and gracefully shutdown root kernel.