@@ -105,23 +105,31 @@ public class MBeanExporter extends MBeanRegistrationSupport implements MBeanExpo
105
105
106
106
/**
107
107
* Autodetection mode indicating that no autodetection should be used.
108
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
108
109
*/
110
+ @ Deprecated (since = "6.1" )
109
111
public static final int AUTODETECT_NONE = 0 ;
110
112
111
113
/**
112
114
* Autodetection mode indicating that only valid MBeans should be autodetected.
115
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
113
116
*/
117
+ @ Deprecated (since = "6.1" )
114
118
public static final int AUTODETECT_MBEAN = 1 ;
115
119
116
120
/**
117
121
* Autodetection mode indicating that only the {@link MBeanInfoAssembler} should be able
118
122
* to autodetect beans.
123
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
119
124
*/
125
+ @ Deprecated (since = "6.1" )
120
126
public static final int AUTODETECT_ASSEMBLER = 2 ;
121
127
122
128
/**
123
129
* Autodetection mode indicating that all autodetection mechanisms should be used.
130
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
124
131
*/
132
+ @ Deprecated (since = "6.1" )
125
133
public static final int AUTODETECT_ALL = AUTODETECT_MBEAN | AUTODETECT_ASSEMBLER ;
126
134
127
135
@@ -236,7 +244,9 @@ public void setAutodetect(boolean autodetect) {
236
244
* @see #AUTODETECT_ASSEMBLER
237
245
* @see #AUTODETECT_MBEAN
238
246
* @see #AUTODETECT_NONE
247
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
239
248
*/
249
+ @ Deprecated (since = "6.1" )
240
250
public void setAutodetectModeName (String constantName ) {
241
251
Assert .hasText (constantName , "'constantName' must not be null or blank" );
242
252
Integer mode = constants .get (constantName );
@@ -253,7 +263,9 @@ public void setAutodetectModeName(String constantName) {
253
263
* @see #AUTODETECT_ASSEMBLER
254
264
* @see #AUTODETECT_MBEAN
255
265
* @see #AUTODETECT_NONE
266
+ * @deprecated as of 6.1, in favor of the {@link #setAutodetect "autodetect" flag}
256
267
*/
268
+ @ Deprecated (since = "6.1" )
257
269
public void setAutodetectMode (int autodetectMode ) {
258
270
Assert .isTrue (constants .containsValue (autodetectMode ),
259
271
"Only values of autodetect constants allowed" );
0 commit comments