void processProducers(@Observes ProcessProducer<?, ?> event) { AnnotatedMember<?> member = event.getAnnotatedMember(); if (RemoteCacheProducer.class.equals(member.getDeclaringType().getBaseType())) { remoteCacheProducer = (Producer<RemoteCache<?, ?>>) event.getProducer(); } }
private <T extends CamelContext> void camelContextProducers( @Observes ProcessProducer<?, T> pp, BeanManager manager) { pp.setProducer( environment.camelContextProducer(pp.getProducer(), pp.getAnnotatedMember(), manager, this)); }
void observeIntegerBeanProducer(@Observes ProcessProducer<SimpleBean, Integer> event) { this.integerBeanProducer = event.getProducer(); this.integerMethod1 = event.getAnnotatedMember(); }