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