@Metadata(label="spring,configuration")
public class CamelPropertyPlaceholderDefinition
extends org.apache.camel.model.IdentifiedType
Type | Property and Description |
---|---|
Boolean |
isFallbackToUnaugmented
Gets the value of the property fallbackToUnaugmentedProperty.
|
Constructor and Description |
---|
CamelPropertyPlaceholderDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getEncoding() |
List<CamelPropertyPlaceholderFunctionDefinition> |
getFunctions() |
String |
getLocation() |
String |
getPrefixToken() |
String |
getPropertiesParserRef() |
String |
getPropertiesResolverRef() |
String |
getPropertyPrefix() |
String |
getPropertySuffix() |
String |
getSuffixToken() |
Boolean |
isCache() |
Boolean |
isFallbackToUnaugmentedProperty()
Gets the value of the property fallbackToUnaugmentedProperty.
|
Boolean |
isIgnoreMissingLocation() |
void |
setCache(Boolean cache)
Whether or not to cache loaded properties.
|
void |
setEncoding(String encoding)
Encoding to use when loading properties file from the file system or classpath.
|
void |
setFallbackToUnaugmentedProperty(Boolean fallbackToUnaugmentedProperty)
If true, first attempt resolution of property name augmented with propertyPrefix and propertySuffix
before falling back the plain property name specified.
|
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 |
setPrefixToken(String prefixToken)
Sets the value of the prefix token used to identify properties to replace.
|
void |
setPropertiesParserRef(String propertiesParserRef)
Reference to a custom PropertiesParser to be used
|
void |
setPropertiesResolverRef(String propertiesResolverRef)
Reference to a custom PropertiesResolver to be used
|
void |
setPropertyPrefix(String propertyPrefix)
Optional prefix prepended to property names before resolution.
|
void |
setPropertySuffix(String propertySuffix)
Optional suffix appended to property names before resolution.
|
void |
setSuffixToken(String suffixToken)
Sets the value of the suffix token used to identify properties to replace.
|
public Boolean isFallbackToUnaugmentedProperty
public String getLocation()
public void setLocation(String location)
public String getEncoding()
public void setEncoding(String encoding)
Properties.load(java.io.InputStream)
public Boolean isCache()
public void setCache(Boolean cache)
public String getPropertiesResolverRef()
public void setPropertiesResolverRef(String propertiesResolverRef)
public String getPropertiesParserRef()
public void setPropertiesParserRef(String propertiesParserRef)
public String getPropertyPrefix()
public void setPropertyPrefix(String propertyPrefix)
public String getPropertySuffix()
public void setPropertySuffix(String propertySuffix)
public Boolean isFallbackToUnaugmentedProperty()
public void setFallbackToUnaugmentedProperty(Boolean fallbackToUnaugmentedProperty)
public Boolean isIgnoreMissingLocation()
public void setIgnoreMissingLocation(Boolean ignoreMissingLocation)
public String getPrefixToken()
public void setPrefixToken(String prefixToken)
null
restores the default token {{public String getSuffixToken()
public void setSuffixToken(String suffixToken)
null
restores the default token }}public List<CamelPropertyPlaceholderFunctionDefinition> getFunctions()
public void setFunctions(List<CamelPropertyPlaceholderFunctionDefinition> functions)
Apache Camel