Code example for AbstractSingleBeanDefinitionParser

 * This BeanDefinition parser help to inject the camel context into the beans 
 * @version  
public class AbstractCamelContextBeanDefinitionParaser extends AbstractSingleBeanDefinitionParser {
    private static final String DEFAULT_CAMEL_CONTEXT_NAME = "camelContext";
    private String getContextId(String contextId) {
        if (ObjectHelper.isEmpty(contextId)) {
            //Set the contextId default value here 
            return DEFAULT_CAMEL_CONTEXT_NAME;
        } else { 
            return contextId;
    protected void mapToProperty(BeanDefinitionBuilder bean, String propertyName, String val) {
        if (ID_ATTRIBUTE.equals(propertyName)) {
Contextual code suggestions in your IDE  Get Codota for Java