29
29
import org .springframework .beans .factory .BeanFactoryAware ;
30
30
import org .springframework .beans .factory .config .ConfigurableBeanFactory ;
31
31
import org .springframework .beans .factory .config .EmbeddedValueResolver ;
32
+ import org .springframework .core .annotation .AnnotatedElementUtils ;
32
33
import org .springframework .core .annotation .AnnotationUtils ;
33
34
import org .springframework .jmx .export .metadata .InvalidMetadataException ;
34
35
import org .springframework .jmx .export .metadata .JmxAttributeSource ;
@@ -106,7 +107,7 @@ public org.springframework.jmx.export.metadata.ManagedOperation getManagedOperat
106
107
public org .springframework .jmx .export .metadata .ManagedOperationParameter [] getManagedOperationParameters (Method method )
107
108
throws InvalidMetadataException {
108
109
109
- Set <ManagedOperationParameter > anns = AnnotationUtils . getRepeatableAnnotations (
110
+ Set <ManagedOperationParameter > anns = AnnotatedElementUtils . getMergedRepeatableAnnotations (
110
111
method , ManagedOperationParameter .class , ManagedOperationParameters .class );
111
112
return copyPropertiesToBeanArray (anns , org .springframework .jmx .export .metadata .ManagedOperationParameter .class );
112
113
}
@@ -115,7 +116,7 @@ public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getMa
115
116
public org .springframework .jmx .export .metadata .ManagedNotification [] getManagedNotifications (Class <?> clazz )
116
117
throws InvalidMetadataException {
117
118
118
- Set <ManagedNotification > anns = AnnotationUtils . getRepeatableAnnotations (
119
+ Set <ManagedNotification > anns = AnnotatedElementUtils . getMergedRepeatableAnnotations (
119
120
clazz , ManagedNotification .class , ManagedNotifications .class );
120
121
return copyPropertiesToBeanArray (anns , org .springframework .jmx .export .metadata .ManagedNotification .class );
121
122
}
0 commit comments