Class ArtifactPropertiesPlaceholder

java.lang.Object
org.springframework.core.io.support.PropertiesLoaderSupport
org.springframework.beans.factory.config.PropertyResourceConfigurer
org.springframework.beans.factory.config.PlaceholderConfigurerSupport
org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
org.mule.extension.spring.api.ArtifactPropertiesPlaceholder
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

public class ArtifactPropertiesPlaceholder extends org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
PropertyPlaceholderConfigurer implementation that resolves properties against the mule artifact properties where the spring module is defined.
Since:
1.0
  • Field Summary

    Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

    SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE

    Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

    DEFAULT_ESCAPE_CHARACTER, DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, escapeCharacter, ignoreUnresolvablePlaceholders, nullValue, placeholderPrefix, placeholderSuffix, trimValues, valueSeparator

    Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

    localOverride, localProperties, logger

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
    ArtifactPropertiesPlaceholder(org.mule.runtime.api.component.ConfigurationProperties configurationProperties)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.runtime.api.component.ConfigurationProperties
     
    int
     
    protected String
    resolvePlaceholder(String placeholder, Properties props)
     
    protected String
    resolvePlaceholder(String placeholder, Properties props, int systemPropertiesMode)
     

    Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

    processProperties, resolveSystemProperty, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName

    Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

    doProcessProperties, setBeanFactory, setBeanName, setEscapeCharacter, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator

    Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer

    convertProperties, convertProperty, convertPropertyValue, postProcessBeanFactory, setOrder

    Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

    loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArtifactPropertiesPlaceholder

      public ArtifactPropertiesPlaceholder(org.mule.runtime.api.component.ConfigurationProperties configurationProperties)
      Parameters:
      configurationProperties - ConfigurationProperties of the artifact
  • Method Details

    • resolvePlaceholder

      protected String resolvePlaceholder(String placeholder, Properties props, int systemPropertiesMode)
      Overrides:
      resolvePlaceholder in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
    • resolvePlaceholder

      protected String resolvePlaceholder(String placeholder, Properties props)
      Overrides:
      resolvePlaceholder in class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
      Overrides:
      getOrder in class org.springframework.beans.factory.config.PropertyResourceConfigurer
    • getConfigurationProperties

      public org.mule.runtime.api.component.ConfigurationProperties getConfigurationProperties()