Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({TYPE})
public @interface ManagedResource
Publishes this bean’s ManagedAttribute getters as metrics and its
ManagedOperation methods as operations – the JMX model, over OpenTelemetry.
Each numeric attribute becomes an observable gauge named
<objectName>.<attribute>, read when metrics are collected. The operations
are listed by the management endpoint and by the development MCP server,
which can invoke them. Everything is enumerated by the build; the generated
code calls the getters and the operations directly.
Methods
public abstract String objectName() default "" | The prefix the metrics are named under. |
public abstract String description() default "" | What the bean is, for the listing. |
Method details
objectName
public abstract String objectName() default ""The prefix the metrics are named under. Empty means the class’s simple
name.
description
public abstract String description() default ""What the bean is, for the listing.