コード例 #1
0
 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
ファイル: SimpleExtension.java プロジェクト: hasys/core
 void observeIntegerBeanProducer(@Observes ProcessProducer<SimpleBean, Integer> event) {
   this.integerBeanProducer = event.getProducer();
   this.integerMethod1 = event.getAnnotatedMember();
 }