Allow @ManagedXYZ on interfaces [SPR-3635] #8316
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Kenny MacLeod opened SPR-3635 and commented
Take the following code:
@ManagedResource
class X implements Y {
String getProp() { ... }
}
interface Y {
@ManagedAttribute
String getProp();
}
Intuitively, when a bean of type X is exposed through JMX, it would have getProp() exposed as a JMX attribute. However, it only exposes attributes/operations that are declared in X itself.
For consistency with
@Transactional
annotations, I think it should search superclasses and implemented interfaces for@Managed
anootations and act accordingly.Affects: 2.0.6
Issue Links:
Referenced from: commits 8f6a42b
5 votes, 5 watchers
The text was updated successfully, but these errors were encountered: