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));
 }
Beispiel #3
0
 void observeIntegerBeanProducer(@Observes ProcessProducer<SimpleBean, Integer> event) {
   this.integerBeanProducer = event.getProducer();
   this.integerMethod1 = event.getAnnotatedMember();
 }