@@ -3440,33 +3440,32 @@ The following table summarizes these registration behaviors:
34403440|===
34413441| Registration behavior | Explanation
34423442
3443- | `REGISTRATION_FAIL_ON_EXISTING `
3443+ | `FAIL_ON_EXISTING `
34443444| This is the default registration behavior. If an `MBean` instance has already been
34453445 registered under the same `ObjectName`, the `MBean` that is being registered is not
34463446 registered, and an `InstanceAlreadyExistsException` is thrown. The existing
34473447 `MBean` is unaffected.
34483448
3449- | `REGISTRATION_IGNORE_EXISTING `
3449+ | `IGNORE_EXISTING `
34503450| If an `MBean` instance has already been registered under the same `ObjectName`, the
34513451 `MBean` that is being registered is not registered. The existing `MBean` is
34523452 unaffected, and no `Exception` is thrown. This is useful in settings where
34533453 multiple applications want to share a common `MBean` in a shared `MBeanServer`.
34543454
3455- | `REGISTRATION_REPLACE_EXISTING `
3455+ | `REPLACE_EXISTING `
34563456| If an `MBean` instance has already been registered under the same `ObjectName`, the
34573457 existing `MBean` that was previously registered is unregistered, and the new
34583458 `MBean` is registered in its place (the new `MBean` effectively replaces the
34593459 previous instance).
34603460|===
34613461
3462- The values in the preceding table are defined as constants on the `MBeanRegistrationSupport` class (the
3463- `MBeanExporter` class derives from this superclass). If you want to change the default
3464- registration behavior, you need to set the value of the
3465- `registrationBehaviorName` property on your `MBeanExporter` definition to one of those
3462+ The values in the preceding table are defined as enums on the `RegistrationPolicy` class.
3463+ If you want to change the default registration behavior, you need to set the value of the
3464+ `registrationPolicy` property on your `MBeanExporter` definition to one of those
34663465values.
34673466
34683467The following example shows how to change from the default registration
3469- behavior to the `REGISTRATION_REPLACE_EXISTING ` behavior:
3468+ behavior to the `REPLACE_EXISTING ` behavior:
34703469
34713470====
34723471[source,xml,indent=0]
@@ -3480,7 +3479,7 @@ behavior to the `REGISTRATION_REPLACE_EXISTING` behavior:
34803479 <entry key="bean:name=testBean1" value-ref="testBean"/>
34813480 </map>
34823481 </property>
3483- <property name="registrationBehaviorName " value="REGISTRATION_REPLACE_EXISTING "/>
3482+ <property name="registrationPolicy " value="REPLACE_EXISTING "/>
34843483 </bean>
34853484
34863485 <bean id="testBean" class="org.springframework.jmx.JmxTestBean">
0 commit comments