Skip to content

Allow @ManagedXYZ on interfaces [SPR-3635] #8316

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions