eclipse / lsp4mp

Technology lsp4mp
Eclipse Public License 2.0
21 stars 27 forks source link

MicroProfile - HealthCheck warning #443

Open michelcouto opened 2 months ago

michelcouto commented 2 months ago

When having a class implementing org.eclipse.microprofile.health.HealthCheck and using the @Startup annotation brought since 3.1 API, Eclipse shows the following warning: The class com.acme.SomeStartupHealthCheck implementing the HealthCheck interface should use the @Liveness or @Readiness annotation.

@Startup should also be supported!

fbricon commented 2 months ago

Can you provide some pointers to the spec?

michelcouto commented 2 months ago

Sure. https://download.eclipse.org/microprofile/microprofile-health-3.1/apidocs/

See that, since 3.1, alongside Readiness and Liveness annotations, supported by the MicroProfile Language Server, there is then the Startup one as well.

https://github.com/eclipse/microprofile-health In here, there are descriptions about the 3 different checks (startup, live and ready).