Пример #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
 private <T extends CamelContextAware> void camelContextAware(
     @Observes ProcessInjectionTarget<T> pit, BeanManager manager) {
   pit.setInjectionTarget(new CamelBeanInjectionTarget<>(pit.getInjectionTarget(), manager));
 }
Пример #3
0
 private <T extends CamelContext> void camelContextBeans(
     @Observes ProcessInjectionTarget<T> pit, BeanManager manager) {
   pit.setInjectionTarget(
       environment.camelContextInjectionTarget(
           pit.getInjectionTarget(), pit.getAnnotatedType(), manager, this));
 }