Is there the notion of an @RequestScope post-refresh hook?
Use Case: We need to push config changes. Currently, this is manual and fires as a part of the app restart. However, if we can trigger a /bus/refresh, once the Environment gets refreshed, not destroy the bean (an @Service in this case), yet fire some config changes once the new environment value gets updated? Is something like this possible?
@RefreshScopebean is also a proxy with a target whose lifecycle is tied to those refresh events. So that's a good way to react to the events without writing any Spring-specific code. I guess I didn't understand the use case if that wouldn't work. - Dave Syer