use of org.springframework.integration.support.management.IntegrationManagedResource in project spring-integration by spring-projects.
the class IntegrationJmxAttributeSource method getManagedResource.
@Override
public ManagedResource getManagedResource(Class<?> beanClass) throws InvalidMetadataException {
IntegrationManagedResource ann = AnnotationUtils.getAnnotation(beanClass, IntegrationManagedResource.class);
if (ann == null) {
return null;
}
ManagedResource managedResource = new ManagedResource();
AnnotationBeanUtils.copyPropertiesToBean(ann, managedResource, this.valueResolver);
return managedResource;
}
Aggregations