本文整理汇总了Java中javax.enterprise.inject.spi.ProcessProducerMethod类的典型用法代码示例。如果您正苦于以下问题:Java ProcessProducerMethod类的具体用法?Java ProcessProducerMethod怎么用?Java ProcessProducerMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ProcessProducerMethod类属于javax.enterprise.inject.spi包,在下文中一共展示了ProcessProducerMethod类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: processProducerMethod
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
<K, V> void processProducerMethod(@Observes ProcessProducerMethod<K, V> ppm) {
logger.info("finished the scanning process");
processProducerMethod++;
}
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:5,代码来源:ObserverExtension.java
示例2: captureConvertBean
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
public void captureConvertBean(@Observes final ProcessProducerMethod<?, ?> ppm) {
if (ppm.getAnnotated().isAnnotationPresent(ConfigProperty.class)) {
convBean = ppm.getBean();
}
}
示例3: metricProducerMethod
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
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());
}
}
示例4: endpointBeans
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
private <T extends Endpoint> void endpointBeans(@Observes ProcessProducerMethod<T, CdiCamelFactory> ppm) {
producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
示例5: consumerTemplateBeans
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
private void consumerTemplateBeans(@Observes ProcessProducerMethod<ConsumerTemplate, CdiCamelFactory> ppm) {
producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
示例6: producerTemplateBeans
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
private void producerTemplateBeans(@Observes ProcessProducerMethod<ProducerTemplate, CdiCamelFactory> ppm) {
producerBeans.put(ppm.getAnnotatedProducerMethod().getJavaMember(), ppm.getBean());
}
示例7: beans
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
private void beans(@Observes ProcessProducerMethod<?, ?> pb) {
cdiBeans.add(pb.getBean());
}
示例8: metricProducerMethod
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
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());
}
示例9: findDynamicProducer
import javax.enterprise.inject.spi.ProcessProducerMethod; //导入依赖的package包/类
public void findDynamicProducer(@Observes ProcessProducerMethod<?, DynamicBeanProducer> processBean)
{
dynamicProducer = processBean.getBean();
}