I'm finding way how to enable/disable modules at runtime. I found togglz framework so I just want to ask if I can achieve what I want with it or with any other tool.
let's say I have following maven modules (each of them has it's own spring configuration eg AccountQueryConfiguration
, AccountCommandConfiguration
, ...)
- account
--- account-query
--- account-command
--- account-rest
- user
--- user-query
--- user-command
--- user-rest
I would like to stop some/all of account modules at runtime. Can I do this with togglz or something similar?
I think I can do this with springs ApplicationContext and removing beans at runtime...right?
Thanks in advance.