Class MicrometerCdiExtension
- java.lang.Object
-
- io.helidon.servicecommon.restcdi.HelidonRestCdiExtension<MicrometerSupport>
-
- io.helidon.integrations.micrometer.cdi.MicrometerCdiExtension
-
- All Implemented Interfaces:
Extension
public class MicrometerCdiExtension extends HelidonRestCdiExtension<MicrometerSupport>
CDI extension for handling Micrometer artifacts.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.helidon.servicecommon.restcdi.HelidonRestCdiExtension
HelidonRestCdiExtension.WorkItemsManager<W>
-
-
Constructor Summary
Constructors Constructor Description MicrometerCdiExtension()
Creates new extension instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
before(BeforeBeanDiscovery discovery)
Initializes the extension prior to bean discovery.protected void
processManagedBean(ProcessManagedBean<?> pmb)
Deals with a managed bean that survived vetoing, provided by concrete extension implementations.protected void
recordProducerFields(ProcessProducerField<? extends io.micrometer.core.instrument.Meter,?> ppf)
protected void
recordProducerMethods(ProcessProducerMethod<? extends io.micrometer.core.instrument.Meter,?> ppm)
protected Routing.Builder
registerService(Object adv, BeanManager bm, ServerCdiExtension serverCdiExtension)
Registers the service-related endpoint, after security and as CDI initializes the app scope, returning the default routing for optional use by the caller.-
Methods inherited from class io.helidon.servicecommon.restcdi.HelidonRestCdiExtension
clearAnnotationInfo, isConcreteNonInterceptor, isOwnProducerOrNonDefaultQualified, observeManagedBeans, producers, recordAnnotatedType, recordProducerField, recordProducerMethod, serviceSupport
-
-
-
-
Method Detail
-
processManagedBean
protected void processManagedBean(ProcessManagedBean<?> pmb)
Description copied from class:HelidonRestCdiExtension
Deals with a managed bean that survived vetoing, provided by concrete extension implementations.The meaning of "process" varies among the concrete implementations. At this point, this base implementation has managed the annotation processing in a general way (e.g., only non-vetoed beans survive) and now delegates to the concrete implementations to actually respond appropriately to the bean and whichever of its members are annotated.
- Specified by:
processManagedBean
in classHelidonRestCdiExtension<MicrometerSupport>
- Parameters:
pmb
- the managed bean, with at least one annotation of interest to the extension
-
registerService
protected Routing.Builder registerService(@Observes @Priority(1010) @Initialized(javax.enterprise.context.ApplicationScoped.class) Object adv, BeanManager bm, ServerCdiExtension serverCdiExtension)
Registers the service-related endpoint, after security and as CDI initializes the app scope, returning the default routing for optional use by the caller.- Overrides:
registerService
in classHelidonRestCdiExtension<MicrometerSupport>
- Parameters:
adv
- app-scoped initialization eventbm
- BeanManagerserverCdiExtension
- the ServerCdiExtension- Returns:
- default routing
-
before
protected void before(@Observes BeforeBeanDiscovery discovery)
Initializes the extension prior to bean discovery.- Parameters:
discovery
- bean discovery event
-
recordProducerFields
protected void recordProducerFields(@Observes ProcessProducerField<? extends io.micrometer.core.instrument.Meter,?> ppf)
-
recordProducerMethods
protected void recordProducerMethods(@Observes ProcessProducerMethod<? extends io.micrometer.core.instrument.Meter,?> ppm)
-
-