Mathieu Lachance opened SPR-13137 and commented
It would be nice for the MBeanExporter#setAutodetectMode to accept a newly created enum for AutodetectMode.
The work has been done for MBeanExporter#setRegistrationPolicy but not for AutodectMode.
If you have a look at RegistrationPolicy#valueOf it re-use the MBeanRegistrationSupport constants. To keep backward compatibility we could leverage the same pattern and/or maybe consider to ditch the pattern as it's already marked with @Deprecated
.
Affects: 4.1.6
Issue Links:
- #13583 Introduce @EnableMBeanExport
equivalent to
Comment From: jhoeller
As part of #30874, we rather intend to reduce the number of options on MBeanExporter
, deprecating the constants and reducing autodetection to a boolean flag.