@ManagedResource
@Component
public class MyBean {
Map<String, Something> map = new HashMap<String, Something>();
@ManagedAttribute
public Collection<Something> getFoo() {
return map.values();
}
}
属性付きの foo は、visualvm mbeans タブで「使用不可」として表示されます。なんで?