NamedPropertySource beanProps = ResourceKey.toPropertySource(beanName);
// NOTE: order is important - especially for the 'type' property
return new AggregateNamedPropertySource(beanProps, opProps);
} catch (MalformedObjectNameException e) {
InsightLogger logger = InsightLogManager.getLogger(JmxInvocationEndPointAnalyzer.class.getName());
logger.warning("Failed (" + e.getClass().getSimpleName() + ")"
+ " to convert " + beanName + " to property source: " + e.getMessage());
return opProps;
}
}
}