Java 类javax.enterprise.inject.spi.ProcessProducerMethod 实例源码

项目:Mastering-Java-EE-Development-with-WildFly    文件:ObserverExtension.java   
<K, V> void processProducerMethod(@Observes ProcessProducerMethod<K, V> ppm) {
    logger.info("finished the scanning process");
    processProducerMethod++;
}
项目:incubator-tamaya-sandbox    文件:JavaConfigCDIExtension.java   
public void captureConvertBean(@Observes final ProcessProducerMethod<?, ?> ppm) {
    if (ppm.getAnnotated().isAnnotationPresent(ConfigProperty.class)) {
        convBean = ppm.getBean();
    }
}
项目:wildfly-swarm    文件:MetricCdiInjectionExtension.java   
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());
    }
}
项目:Camel    文件:CdiCamelExtension.java   
private <T extends Endpoint> void endpointBeans(@Observes ProcessProducerMethod<T, CdiCamelFactory> ppm) {
    producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
项目:Camel    文件:CdiCamelExtension.java   
private void consumerTemplateBeans(@Observes ProcessProducerMethod<ConsumerTemplate, CdiCamelFactory> ppm) {
    producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
项目:Camel    文件:CdiCamelExtension.java   
private void producerTemplateBeans(@Observes ProcessProducerMethod<ProducerTemplate, CdiCamelFactory> ppm) {
    producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
项目:Camel    文件:CdiCamelExtension.java   
private void beans(@Observes ProcessProducerMethod<?, ?> pb) {
    cdiBeans.add(pb.getBean());
}
项目:metrics-cdi    文件:MetricsExtension.java   
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());
}
项目:deltaspike    文件:ConfigurationExtension.java   
public void findDynamicProducer(@Observes ProcessProducerMethod<?, DynamicBeanProducer> processBean)
{
    dynamicProducer = processBean.getBean();
}