Adapter for live beans view exposure, building a snapshot of current beans
and their dependencies from either a local ApplicationContext (with a
local LiveBeansView bean definition) or all registered ApplicationContexts
(driven by the "spring.liveBeansView.mbeanDomain" environment property).
Note: This feature is still in beta and primarily designed for use with
Spring Tool Suite 3.1 and higher.
Actually generate a JSON snapshot of the beans in the given ApplicationContexts.
This implementation doesn't use any JSON parsing libraries in order to avoid
third-party library dependencies. It produces an array of context description
objects, each containing a context and parent attribute as well as a beans
attribute with nested bean description objects. Each bean object contains a
bean, scope, type and resource attribute, as well as a dependencies attribute
with a nested array of bean names that the present bean depends on.