Properties Component
Available as of from Camel 2.3
URI format
Code Block |
---|
properties:key[?options]
|
...
Div |
---|
class | confluenceTableSmall |
---|
|
NameOption | Type | Default | Description |
---|
cache
| boolean
| true
| Whether or not to cache loaded properties. | encoding
| String
| null
| Camel 2.14.3/2.15.1: To use a specific The charset to load the use when loading properties, such as UTF-8 . By default The default charset is: ISO-8859-1 (latin1 ) is used. | fallbackToUnaugmentedProperty
| boolean
| true
| Camel 2.9 If true , first attempt resolution of property name augmented with propertyPrefix and propertySuffix before falling back the plain property name specified. If false , only the augmented property name is searched. | disableDefaultValueResolution defaultFallbackEnabled
| boolean
| false true
| Camel 2.19 If true : If false the component does will not attempt to find a default for the key by looking after the colon separator. | ignoreMissingLocation
| boolean
| false
| Camel 2.10: Whether to silently ignore if a location cannot be located, such as a properties file not found. | locations
| String
| null
| A comma separated list of one or more locations to load properties. You can use comma to separate multiple locations. This option will override any default locations and only use the locations from this optionof property files to be loaded. Property resolution will use the given property files exclusively. Any default location(s) are ignored. | prefixToken
| String
| {{
| Camel 2.9 The This token is used to indicate mark the beginning start of a property tokenplaceholder definition. | propertyPrefix
| String
| null
| Camel 2.9 Optional An optional prefix that's prepended to each property names before name prior to resolution. | propertySuffix
| String
| null
| Camel 2.9 Optional An optional suffix that's appended to each property names before name prior to resolution. | suffixToken
| String
| }}
| Camel 2.9 The This token is used to indicate mark the end of a property tokenplaceholder definition. | systemPropertiesMode
| int
| 2
| Camel 2.16 The mode to use for whether to resolve and use system properties: 0 = never - JVM system properties are never used.
1 = fallback - JVM system properties are only used as fallback if no regular property with the key exists.
2 = override - JVM system properties are used if exists, otherwise the regular property will be used.Note: when
Warning |
---|
title | Bridging Spring and Camel Property Placeholders |
---|
| When bridging to Spring's property placeholder using org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer the configuration on BridgePropertyPlaceholderConfigurer will take precedence over the configuration on the PropertiesComponent . |
|
|
Tip |
---|
title | Resolving property from Java code |
---|
|
You can use the method resolvePropertyPlaceholders on the CamelContext to resolve a property from any Java code. |
...