Search in sources :

Example 1 with IntegrationManagedResource

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;
}
Also used : IntegrationManagedResource(org.springframework.integration.support.management.IntegrationManagedResource) IntegrationManagedResource(org.springframework.integration.support.management.IntegrationManagedResource) ManagedResource(org.springframework.jmx.export.metadata.ManagedResource)

Aggregations

IntegrationManagedResource (org.springframework.integration.support.management.IntegrationManagedResource)1 ManagedResource (org.springframework.jmx.export.metadata.ManagedResource)1