microprofile/health-smallrye/src/main/java/org/wildfly/extension/microprofile/health/deployment/CDIExtension.java
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);
    }
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);
    }
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
Discover all classes that implements HealthCheckProcedure