Java 类org.apache.camel.component.hl7.HL7DataFormat 实例源码

项目:Camel    文件:HL7DataFormatAutoConfiguration.java   
@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;
}
项目:rassyeyanie    文件:GenericTransformRoute.java   
public HL7DataFormat getHl7DataFormat()
{
    return this.hl7DataFormat;
}
项目:rassyeyanie    文件:GenericTransformRoute.java   
@Autowired
public void setHl7DataFormat(HL7DataFormat hl7DataFormat)
{
    this.hl7DataFormat = hl7DataFormat;
}