Package org.apache.camel.core.xml
Class CamelPropertyPlaceholderDefinition
- java.lang.Object
-
- org.apache.camel.model.IdentifiedType
-
- org.apache.camel.core.xml.CamelPropertyPlaceholderDefinition
-
@Metadata(label="spring,configuration") public class CamelPropertyPlaceholderDefinition extends org.apache.camel.model.IdentifiedType
Properties placeholder
-
-
Constructor Summary
Constructors Constructor Description CamelPropertyPlaceholderDefinition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getDefaultFallbackEnabled()
String
getEncoding()
List<CamelPropertyPlaceholderFunctionDefinition>
getFunctions()
String
getLocation()
List<CamelPropertyPlaceholderLocationDefinition>
getLocations()
String
getPropertiesParserRef()
Boolean
isIgnoreMissingLocation()
Boolean
isNestedPlaceholder()
void
setDefaultFallbackEnabled(Boolean defaultFallbackEnabled)
If false, the component does not attempt to find a default for the key by looking after the colon separator.void
setEncoding(String encoding)
Encoding to use when loading properties file from the file system or classpath.void
setFunctions(List<CamelPropertyPlaceholderFunctionDefinition> functions)
List of custom properties function to use.void
setIgnoreMissingLocation(Boolean ignoreMissingLocation)
Whether to silently ignore if a location cannot be located, such as a properties file not found.void
setLocation(String location)
A list of locations to load properties.void
setLocations(List<CamelPropertyPlaceholderLocationDefinition> locations)
List of property locations to use.void
setNestedPlaceholder(Boolean nestedPlaceholder)
Whether to support nested property placeholders.void
setPropertiesParserRef(String propertiesParserRef)
Reference to a custom PropertiesParser to be used
-
-
-
Method Detail
-
getLocation
public String getLocation()
-
setLocation
public void setLocation(String location)
A list of 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 option.
-
getEncoding
public String getEncoding()
-
setEncoding
public void setEncoding(String encoding)
Encoding to use when loading properties file from the file system or classpath. If no encoding has been set, then the properties files is loaded using ISO-8859-1 encoding (latin-1) as documented byProperties.load(java.io.InputStream)
-
getPropertiesParserRef
public String getPropertiesParserRef()
-
setPropertiesParserRef
public void setPropertiesParserRef(String propertiesParserRef)
Reference to a custom PropertiesParser to be used
-
getDefaultFallbackEnabled
public Boolean getDefaultFallbackEnabled()
-
setDefaultFallbackEnabled
public void setDefaultFallbackEnabled(Boolean defaultFallbackEnabled)
If false, the component does not attempt to find a default for the key by looking after the colon separator.
-
isIgnoreMissingLocation
public Boolean isIgnoreMissingLocation()
-
setIgnoreMissingLocation
public void setIgnoreMissingLocation(Boolean ignoreMissingLocation)
Whether to silently ignore if a location cannot be located, such as a properties file not found.
-
isNestedPlaceholder
public Boolean isNestedPlaceholder()
-
setNestedPlaceholder
public void setNestedPlaceholder(Boolean nestedPlaceholder)
Whether to support nested property placeholders. A nested placeholder, means that a placeholder, has also a placeholder, that should be resolved (recursively).
-
getFunctions
public List<CamelPropertyPlaceholderFunctionDefinition> getFunctions()
-
setFunctions
public void setFunctions(List<CamelPropertyPlaceholderFunctionDefinition> functions)
List of custom properties function to use.
-
getLocations
public List<CamelPropertyPlaceholderLocationDefinition> getLocations()
-
setLocations
public void setLocations(List<CamelPropertyPlaceholderLocationDefinition> locations)
List of property locations to use.
-
-