コード例 #1
0
 private <T> void camelBeansPostProcessor(
     @Observes ProcessInjectionTarget<T> pit, BeanManager manager) {
   if (camelBeans.contains(pit.getAnnotatedType())) {
     pit.setInjectionTarget(new CamelBeanInjectionTarget<>(pit.getInjectionTarget(), manager));
   }
 }
コード例 #2
0
 <X> void registerGenericBeanInjectionTarget(@Observes ProcessInjectionTarget<X> event) {
   AnnotatedType<X> type = event.getAnnotatedType();
   if (type.isAnnotationPresent(GenericConfiguration.class)) {
     genericInjectionTargets.put(type, event.getInjectionTarget());
   }
 }
コード例 #3
0
 private <T extends CamelContext> void camelContextBeans(
     @Observes ProcessInjectionTarget<T> pit, BeanManager manager) {
   pit.setInjectionTarget(
       environment.camelContextInjectionTarget(
           pit.getInjectionTarget(), pit.getAnnotatedType(), manager, this));
 }
コード例 #4
0
ファイル: SimpleExtension.java プロジェクト: hasys/core
 void observeSimpleBeanInjectionTarget(@Observes ProcessInjectionTarget<SimpleBean> event) {
   this.simpleBeanInjectionTarget = event.getInjectionTarget();
   this.simpleBeanType3 = event.getAnnotatedType();
 }