Class DSpaceConfigurationPlaceholderConfigurer

  • 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.context.EnvironmentAware, org.springframework.core.Ordered, org.springframework.core.PriorityOrdered

    public class DSpaceConfigurationPlaceholderConfigurer
    extends org.springframework.context.support.PropertySourcesPlaceholderConfigurer
    Extends Spring PropertySourcesPlaceholderConfigurer to allow our Configuration to be included as a Spring PropertySource. This allows ${...} placeholders within bean definition property values and @Value annotations to be resolved using DSpaceConfigurationService

    See: https://stackoverflow.com/a/36718301/3750035

    NOTE: This is initialized in spring-dspace-core-services.xml

    See Also:
    PropertySourcesPlaceholderConfigurer, DSpaceConfigurationService
    • Field Summary

      • Fields inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer

        ENVIRONMENT_PROPERTIES_PROPERTY_SOURCE_NAME, LOCAL_PROPERTIES_PROPERTY_SOURCE_NAME
      • Fields inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

        DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, DEFAULT_VALUE_SEPARATOR, 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
    • Method Summary

      • Methods inherited from class org.springframework.context.support.PropertySourcesPlaceholderConfigurer

        getAppliedPropertySources, postProcessBeanFactory, processProperties, processProperties, setEnvironment, setPropertySources
      • Methods inherited from class org.springframework.beans.factory.config.PlaceholderConfigurerSupport

        doProcessProperties, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setNullValue, setPlaceholderPrefix, setPlaceholderSuffix, setTrimValues, setValueSeparator
      • Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer

        convertProperties, convertProperty, convertPropertyValue, getOrder, setOrder
      • Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport

        loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
    • Constructor Detail

      • DSpaceConfigurationPlaceholderConfigurer

        public DSpaceConfigurationPlaceholderConfigurer​(org.apache.commons.configuration2.Configuration configuration)