in core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/properties/PropertiesComponentAutoConfiguration.java [50:91]
public PropertiesComponent configurePropertiesComponent(PropertiesComponentConfiguration configuration) throws Exception {
PropertiesComponent component = new PropertiesComponent();
component.setCamelContext(camelContext);
if (configuration.getAutoDiscoverPropertiesSources() != null) {
component.setAutoDiscoverPropertiesSources(configuration.getAutoDiscoverPropertiesSources());
}
if (configuration.getDefaultFallbackEnabled() != null) {
component.setDefaultFallbackEnabled(configuration.getDefaultFallbackEnabled());
}
if (configuration.getEncoding() != null) {
component.setEncoding(configuration.getEncoding());
}
if (configuration.getEnvironmentVariableMode() != null) {
component.setEnvironmentVariableMode(configuration.getEnvironmentVariableMode());
}
if (configuration.getSystemPropertiesMode() != null) {
component.setSystemPropertiesMode(configuration.getSystemPropertiesMode());
}
if (configuration.getIgnoreMissingLocation() != null) {
component.setIgnoreMissingLocation(configuration.getIgnoreMissingLocation());
}
if (configuration.getNestedPlaceholder() != null) {
component.setNestedPlaceholder(configuration.getNestedPlaceholder());
}
if (configuration.getLocation() != null) {
component.setLocation(configuration.getLocation());
}
if (configuration.getInitialProperties() != null) {
Properties prop = camelContext.getRegistry().lookupByNameAndType(configuration.getInitialProperties(), Properties.class);
component.setInitialProperties(prop);
}
if (configuration.getOverrideProperties() != null) {
Properties prop = camelContext.getRegistry().lookupByNameAndType(configuration.getOverrideProperties(), Properties.class);
component.setOverrideProperties(prop);
}
if (configuration.getPropertiesParser() != null) {
PropertiesParser parser = camelContext.getRegistry().lookupByNameAndType(configuration.getPropertiesParser(), PropertiesParser.class);
component.setPropertiesParser(parser);
}
return component;
}