org.springframework.jmx.support
Class MBeanRegistrationSupport

Provides supporting infrastructure for registering MBeans with an
MBeanServer. The behavior when encountering
an existing MBean at a given ObjectName is fully configurable
allowing for flexible registration settings.

All registered MBeans are tracked and can be unregistered by calling
the #unregisterBeans() method.

By default, the registration process will fail if attempting to
register an MBean using a ObjectName that is
already used.

By setting the registrationBehaviorName
property to REGISTRATION_IGNORE_EXISTING the registration process
will simply ignore existing MBeans leaving them registered. This is useful in settings
where multiple applications want to share a common MBean in a shared MBeanServer.

Setting registrationBehaviorName property
to REGISTRATION_REPLACE_EXISTING will cause existing MBeans to be replaced
during registration if necessary. This is useful in situations where you can't guarantee
the state of your MBeanServer.