public class CDIExtension extends Object implements javax.enterprise.inject.spi.Extension
| Constructor and Description |
|---|
CDIExtension(HealthReporter healthReporter) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeShutdown(javax.enterprise.inject.spi.BeforeShutdown bs)
Called when the deployment is undeployed.
|
void |
observeResources(javax.enterprise.inject.spi.ProcessAnnotatedType<? extends org.eclipse.microprofile.health.HealthCheck> event)
Discover all classes that implements HealthCheckProcedure
|
public CDIExtension(HealthReporter healthReporter)
public void observeResources(@Observes
javax.enterprise.inject.spi.ProcessAnnotatedType<? extends org.eclipse.microprofile.health.HealthCheck> event)
public void beforeShutdown(@Observes
javax.enterprise.inject.spi.BeforeShutdown bs)
Remove all the instances of HealthCheck from the SmallRyeHealthReporter.
Handle manually their CDI destroy lifecycle.
Copyright © 2019 JBoss by Red Hat. All rights reserved.