public void observeResources ( @ Observes @ WithAnnotations ( { Health . class } ) ProcessAnnotatedType < ? extends HealthCheck > event ) { AnnotatedType < ? extends HealthCheck > annotatedType = event . getAnnotatedType ( ) ; Class < ? extends HealthCheck > javaClass = annotatedType . getJavaClass ( ) ; MicroProfileHealthLogger . LOGGER . infof ( "Discovered health check procedure %s" , javaClass ) ; delegates . add ( annotatedType ) ; }
Discover all classes that implements HealthCheckProcedure