@Override protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) { doBeforeParse(element); super.doParse(element, parserContext, builder); // now lets parse the routes with JAXB Binder<Node> binder; try { binder = getJaxbContext().createBinder(); } catch (JAXBException e) { throw new BeanDefinitionStoreException("Failed to create the JAXB binder", e); } Object value = parseUsingJaxb(element, parserContext, binder); if (value instanceof CamelEndpointFactoryBean) { CamelEndpointFactoryBean factoryBean = (CamelEndpointFactoryBean) value; builder.addPropertyValue("properties", factoryBean.getProperties()); } } }
private static List<RouteDefinition> processCamelContextElement(CamelContextFactoryBean camelContextFactoryBean, SwitchYardCamelContext camelContext) throws Exception { if (camelContext != null) { if (camelContextFactoryBean.getEndpoints() != null) { // processing camelContext/endpoint for (CamelEndpointFactoryBean epBean : camelContextFactoryBean.getEndpoints()) { epBean.setCamelContext(camelContext); camelContext.getWritebleRegistry().put(epBean.getId(), epBean.getObject()); } } if (camelContextFactoryBean.getDataFormats() != null) { // processing camelContext/dataFormat for (DataFormatDefinition dataFormatDef : camelContextFactoryBean.getDataFormats().getDataFormats()) { camelContext.getDataFormats().put(dataFormatDef.getId(), dataFormatDef); } } } return camelContextFactoryBean.getRoutes(); }
if (endpoints != null) { for (CamelEndpointFactoryBean cefb : endpoints) { uris.add(cefb.getUri());
if (endpoints != null) { for (CamelEndpointFactoryBean cefb : endpoints) { uris.add(cefb.getUri());