|
|
@ -29,6 +29,7 @@ import org.springframework.beans.factory.BeanFactory; |
|
|
|
import org.springframework.beans.factory.BeanFactoryAware; |
|
|
|
import org.springframework.beans.factory.BeanFactoryAware; |
|
|
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory; |
|
|
|
import org.springframework.beans.factory.config.ConfigurableBeanFactory; |
|
|
|
import org.springframework.beans.factory.config.EmbeddedValueResolver; |
|
|
|
import org.springframework.beans.factory.config.EmbeddedValueResolver; |
|
|
|
|
|
|
|
import org.springframework.core.annotation.AnnotatedElementUtils; |
|
|
|
import org.springframework.core.annotation.AnnotationUtils; |
|
|
|
import org.springframework.core.annotation.AnnotationUtils; |
|
|
|
import org.springframework.jmx.export.metadata.InvalidMetadataException; |
|
|
|
import org.springframework.jmx.export.metadata.InvalidMetadataException; |
|
|
|
import org.springframework.jmx.export.metadata.JmxAttributeSource; |
|
|
|
import org.springframework.jmx.export.metadata.JmxAttributeSource; |
|
|
@ -106,7 +107,7 @@ public class AnnotationJmxAttributeSource implements JmxAttributeSource, BeanFac |
|
|
|
public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getManagedOperationParameters(Method method) |
|
|
|
public org.springframework.jmx.export.metadata.ManagedOperationParameter[] getManagedOperationParameters(Method method) |
|
|
|
throws InvalidMetadataException { |
|
|
|
throws InvalidMetadataException { |
|
|
|
|
|
|
|
|
|
|
|
Set<ManagedOperationParameter> anns = AnnotationUtils.getRepeatableAnnotations( |
|
|
|
Set<ManagedOperationParameter> anns = AnnotatedElementUtils.getMergedRepeatableAnnotations( |
|
|
|
method, ManagedOperationParameter.class, ManagedOperationParameters.class); |
|
|
|
method, ManagedOperationParameter.class, ManagedOperationParameters.class); |
|
|
|
return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedOperationParameter.class); |
|
|
|
return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedOperationParameter.class); |
|
|
|
} |
|
|
|
} |
|
|
@ -115,7 +116,7 @@ public class AnnotationJmxAttributeSource implements JmxAttributeSource, BeanFac |
|
|
|
public org.springframework.jmx.export.metadata.ManagedNotification[] getManagedNotifications(Class<?> clazz) |
|
|
|
public org.springframework.jmx.export.metadata.ManagedNotification[] getManagedNotifications(Class<?> clazz) |
|
|
|
throws InvalidMetadataException { |
|
|
|
throws InvalidMetadataException { |
|
|
|
|
|
|
|
|
|
|
|
Set<ManagedNotification> anns = AnnotationUtils.getRepeatableAnnotations( |
|
|
|
Set<ManagedNotification> anns = AnnotatedElementUtils.getMergedRepeatableAnnotations( |
|
|
|
clazz, ManagedNotification.class, ManagedNotifications.class); |
|
|
|
clazz, ManagedNotification.class, ManagedNotifications.class); |
|
|
|
return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedNotification.class); |
|
|
|
return copyPropertiesToBeanArray(anns, org.springframework.jmx.export.metadata.ManagedNotification.class); |
|
|
|
} |
|
|
|
} |
|
|
|