0

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.

bilak
  • 4,526
  • 3
  • 35
  • 75
  • Not sure what you mean by disabling modules. If you want to enable specific beans at runtime look at the Profile and Conditional annotations. – PaulNUK Jul 13 '16 at 15:37
  • I know about profile... but can you switch profiles at runtime (when application is running)? – bilak Jul 13 '16 at 16:21

0 Answers0