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 EnableManagement
Builds the management endpoints into the server: health, metrics, the
Prometheus view, scheduled jobs and managed beans, under /manage.
@EnableManagement
@Configuration
public class Settings { }
THIS IS A BUILD-TIME SWITCH. Without it – or cn1.management.enabled=true
in application.properties or a profile’s file – the entry point never names
the endpoints and the translator leaves their code out of the binary, so a
packaged server has no /manage to find, whatever its profile. The development
run always has them.
With it, the endpoints are on unless cn1.management.enabled=false turns them
off at start-up, and outside a development profile they refuse to start
without cn1.management.token, which belongs in the environment rather than
in source.
Methods
public abstract String path() default "" | Where the endpoints are served; cn1.management.path. |
Method details
path
public abstract String path() default ""cn1.management.path. Empty means
/manage.