<K, V> void processProducerMethod(@Observes ProcessProducerMethod<K, V> ppm) { logger.info("finished the scanning process"); processProducerMethod++; }
public void captureConvertBean(@Observes final ProcessProducerMethod<?, ?> ppm) { if (ppm.getAnnotated().isAnnotationPresent(ConfigProperty.class)) { convBean = ppm.getBean(); } }
private void metricProducerMethod(@Observes ProcessProducerMethod<? extends Metric, ?> ppm) { if (!ppm.getBean().getBeanClass().equals(AMetricRegistryFactory.class)) { LOGGER.infof("Metrics producer method discovered: %s", ppm.getAnnotatedProducerMethod()); metrics.put(ppm.getBean(), ppm.getAnnotatedProducerMethod()); } }
private <T extends Endpoint> void endpointBeans(@Observes ProcessProducerMethod<T, CdiCamelFactory> ppm) { producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean()); }
private void consumerTemplateBeans(@Observes ProcessProducerMethod<ConsumerTemplate, CdiCamelFactory> ppm) { producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean()); }
private void producerTemplateBeans(@Observes ProcessProducerMethod<ProducerTemplate, CdiCamelFactory> ppm) { producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean()); }
private void beans(@Observes ProcessProducerMethod<?, ?> pb) { cdiBeans.add(pb.getBean()); }
private void metricProducerMethod(@Observes ProcessProducerMethod<? extends Metric, ?> ppm) { // Skip the Metrics CDI alternatives if (!ppm.getBean().getBeanClass().equals(MetricProducer.class)) metrics.put(ppm.getBean(), ppm.getAnnotatedProducerMethod()); }
public void findDynamicProducer(@Observes ProcessProducerMethod<?, DynamicBeanProducer> processBean) { dynamicProducer = processBean.getBean(); }