@Bean @ConditionalOnClass(CamelContext.class) @ConditionalOnMissingBean(HL7DataFormat.class) public HL7DataFormat configureHL7DataFormat(CamelContext camelContext, HL7DataFormatConfiguration configuration) throws Exception { HL7DataFormat dataformat = new HL7DataFormat(); if (dataformat instanceof CamelContextAware) { ((CamelContextAware) dataformat).setCamelContext(camelContext); } Map<String, Object> parameters = new HashMap<>(); IntrospectionSupport.getProperties(configuration, parameters, null, false); IntrospectionSupport.setProperties(camelContext, camelContext.getTypeConverter(), dataformat, parameters); return dataformat; }
public HL7DataFormat getHl7DataFormat() { return this.hl7DataFormat; }
@Autowired public void setHl7DataFormat(HL7DataFormat hl7DataFormat) { this.hl7DataFormat = hl7DataFormat; }