Class RepoXMLConfigService

  • All Implemented Interfaces:
    EventListener, TenantDeployer, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener, org.springframework.extensions.config.ConfigService, org.springframework.extensions.config.xml.XMLConfigConstants

    public class RepoXMLConfigService
    extends org.springframework.extensions.config.xml.XMLConfigService
    implements TenantDeployer
    XML-based configuration service which can optionally read config from the Repository
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.springframework.extensions.config.xml.XMLConfigService

        org.springframework.extensions.config.xml.XMLConfigService.PlaceholderResolvingStringValueResolver, org.springframework.extensions.config.xml.XMLConfigService.PropertyConfigurer
    • Field Summary

      • Fields inherited from class org.springframework.extensions.config.BaseConfigService

        configDeployers, configSource
      • Fields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean

        log
      • Fields inherited from interface org.springframework.extensions.config.xml.XMLConfigConstants

        ATTR_CLASS, ATTR_CONDITION, ATTR_ELEMENT_NAME, ATTR_EVALUATOR, ATTR_ID, ATTR_NAME, ATTR_REPLACE, ATTR_VALUE, ELEMENT_CONFIG, ELEMENT_ELEMENT_READER, ELEMENT_ELEMENT_READERS, ELEMENT_EVALUATOR, ELEMENT_EVALUATORS, ELEMENT_PLUG_INS
    • Constructor Summary

      Constructors 
      Constructor Description
      RepoXMLConfigService​(org.springframework.extensions.config.ConfigSource configSource)
      Constructs an XMLConfigService using the given config source
    • Constructor Detail

      • RepoXMLConfigService

        public RepoXMLConfigService​(org.springframework.extensions.config.ConfigSource configSource)
        Constructs an XMLConfigService using the given config source
    • Method Detail

      • setTransactionService

        public void setTransactionService​(TransactionService transactionService)
      • setConfigDataCache

        public void setConfigDataCache​(ConfigDataCache configDataCache)
        Set the asynchronously-controlled cache.
      • initConfig

        public List<org.springframework.extensions.config.ConfigDeployment> initConfig()
        Overrides:
        initConfig in class org.springframework.extensions.config.xml.XMLConfigService
      • getRepoConfig

        public ConfigDataCache.ConfigData getRepoConfig​(String tenantDomain)
        Get the repository configuration data for a given tenant. This does the low-level initialization of the configuration and does not do any caching.
        Parameters:
        tenantDomain - the current tenant domain
        Returns:
        return the repository configuration for the given tenant (never null)
      • destroy

        public void destroy()
        Specified by:
        destroy in interface TenantDeployer
        Overrides:
        destroy in class org.springframework.extensions.config.xml.XMLConfigService
      • reset

        public void reset()
        Resets the config values for the current tenant
        Specified by:
        reset in interface org.springframework.extensions.config.ConfigService
        Overrides:
        reset in class org.springframework.extensions.config.BaseConfigService
      • onBootstrap

        protected void onBootstrap​(org.springframework.context.ApplicationEvent event)
        Overrides:
        onBootstrap in class org.springframework.extensions.config.BaseConfigService
      • onShutdown

        protected void onShutdown​(org.springframework.context.ApplicationEvent event)
        Overrides:
        onShutdown in class org.springframework.extensions.config.BaseConfigService
      • getGlobalConfigImpl

        protected org.springframework.extensions.config.ConfigImpl getGlobalConfigImpl()
        Overrides:
        getGlobalConfigImpl in class org.springframework.extensions.config.BaseConfigService
      • putGlobalConfig

        protected void putGlobalConfig​(org.springframework.extensions.config.ConfigImpl globalConfig)
        Overrides:
        putGlobalConfig in class org.springframework.extensions.config.BaseConfigService
      • removeGlobalConfig

        protected void removeGlobalConfig()
        Overrides:
        removeGlobalConfig in class org.springframework.extensions.config.BaseConfigService
      • getEvaluators

        protected Map<String,​org.springframework.extensions.config.evaluator.Evaluator> getEvaluators()
        Overrides:
        getEvaluators in class org.springframework.extensions.config.BaseConfigService
      • putEvaluators

        protected void putEvaluators​(Map<String,​org.springframework.extensions.config.evaluator.Evaluator> evaluators)
        Overrides:
        putEvaluators in class org.springframework.extensions.config.BaseConfigService
      • removeEvaluators

        protected void removeEvaluators()
        Overrides:
        removeEvaluators in class org.springframework.extensions.config.BaseConfigService
      • getSectionsByArea

        public Map<String,​List<org.springframework.extensions.config.ConfigSection>> getSectionsByArea()
        Overrides:
        getSectionsByArea in class org.springframework.extensions.config.BaseConfigService
      • putSectionsByArea

        protected void putSectionsByArea​(Map<String,​List<org.springframework.extensions.config.ConfigSection>> sectionsByArea)
        Overrides:
        putSectionsByArea in class org.springframework.extensions.config.BaseConfigService
      • removeSectionsByArea

        protected void removeSectionsByArea()
        Overrides:
        removeSectionsByArea in class org.springframework.extensions.config.BaseConfigService
      • getSections

        public List<org.springframework.extensions.config.ConfigSection> getSections()
        Overrides:
        getSections in class org.springframework.extensions.config.BaseConfigService
      • putSections

        protected void putSections​(List<org.springframework.extensions.config.ConfigSection> sections)
        Overrides:
        putSections in class org.springframework.extensions.config.BaseConfigService
      • removeSections

        protected void removeSections()
        Overrides:
        removeSections in class org.springframework.extensions.config.BaseConfigService
      • getElementReaders

        protected Map<String,​org.springframework.extensions.config.xml.elementreader.ConfigElementReader> getElementReaders()
        Overrides:
        getElementReaders in class org.springframework.extensions.config.xml.XMLConfigService
      • putElementReaders

        protected void putElementReaders​(Map<String,​org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders)
        Overrides:
        putElementReaders in class org.springframework.extensions.config.xml.XMLConfigService
      • removeElementReaders

        protected void removeElementReaders()
        Overrides:
        removeElementReaders in class org.springframework.extensions.config.xml.XMLConfigService