javax.enterprise.inject.spi.ProcessProducerField Java Examples

The following examples show how to use javax.enterprise.inject.spi.ProcessProducerField. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MetricCdiInjectionExtension.java    From smallrye-metrics with Apache License 2.0 4 votes vote down vote up
private void findMetricProducerFields(@Observes ProcessProducerField<? extends Metric, ?> ppf) {
    SmallRyeMetricsLogging.log.producerFieldDiscovered(ppf.getAnnotatedProducerField());
    metricsFromProducers.put(ppf.getBean(), ppf.getAnnotatedProducerField());
}
 
Example #2
Source File: JAXRSCdiResourceExtension.java    From cxf with Apache License 2.0 4 votes vote down vote up
public <T, X> void collect(@Observes final ProcessProducerField< T, X > event) {
    final Type baseType = event.getAnnotatedProducerField().getBaseType();
    processProducer(event, baseType);
}
 
Example #3
Source File: HealthCheckExtension.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
private void healthCheckProducerField(@Observes ProcessProducerField<? extends HealthCheck, ?> ppf) {
    healthChecks.put(ppf.getBean(), ppf.getAnnotatedProducerField());
}
 
Example #4
Source File: MetricsExtension.java    From metrics-cdi with Apache License 2.0 4 votes vote down vote up
private void metricProducerField(@Observes ProcessProducerField<? extends Metric, ?> ppf) {
    metrics.put(ppf.getBean(), ppf.getAnnotatedProducerField());
}