injectFields(bean, beanName);
injectMethods(bean, beanName);
if (bean instanceof CamelContextAware && canSetCamelContext(bean, beanName)) {
CamelContextAware contextAware = (CamelContextAware)bean;
if (camelContext == null) {
LOG.warn("No CamelContext defined yet so cannot inject into: " + bean);
} else {
contextAware.setCamelContext(camelContext);
}
}
return bean;
}