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 Project: smallrye-metrics   Author: smallrye   File: MetricCdiInjectionExtension.java    License: 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 Project: cxf   Author: apache   File: JAXRSCdiResourceExtension.java    License: 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 Project: metrics-cdi   Author: astefanutti   File: HealthCheckExtension.java    License: 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 Project: metrics-cdi   Author: astefanutti   File: MetricsExtension.java    License: Apache License 2.0 4 votes vote down vote up
private void metricProducerField(@Observes ProcessProducerField<? extends Metric, ?> ppf) {
    metrics.put(ppf.getBean(), ppf.getAnnotatedProducerField());
}