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 Details

    • CamelPropertyPlaceholderDefinition

      public CamelPropertyPlaceholderDefinition()
  • Method Details

    • 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 by Properties.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

    • setFunctions

      public void setFunctions(List<CamelPropertyPlaceholderFunctionDefinition> functions)
      List of custom properties function to use.
    • getLocations

    • setLocations

      public void setLocations(List<CamelPropertyPlaceholderLocationDefinition> locations)
      List of property locations to use.