Package org.alfresco.repo.config.xml
Class RepoXMLConfigService
java.lang.Object
org.springframework.extensions.surf.util.AbstractLifecycleBean
org.springframework.extensions.config.BaseConfigService
org.springframework.extensions.config.xml.XMLConfigService
org.alfresco.repo.config.xml.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, configSourceFields inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
logFields 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
ConstructorsConstructorDescriptionRepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource) Constructs an XMLConfigService using the given config source -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected org.springframework.extensions.config.ConfigImplgetRepoConfig(String tenantDomain) Get the repository configuration data for a given tenant.List<org.springframework.extensions.config.ConfigSection>List<org.springframework.extensions.config.ConfigDeployment>protected voidonBootstrap(org.springframework.context.ApplicationEvent event) voidvoidprotected voidonShutdown(org.springframework.context.ApplicationEvent event) protected voidputElementReaders(Map<String, org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders) protected voidputEvaluators(Map<String, org.springframework.extensions.config.evaluator.Evaluator> evaluators) protected voidputGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig) protected voidputSections(List<org.springframework.extensions.config.ConfigSection> sections) protected voidputSectionsByArea(Map<String, List<org.springframework.extensions.config.ConfigSection>> sectionsByArea) protected voidprotected voidprotected voidprotected voidprotected voidvoidreset()Resets the config values for the current tenantvoidsetConfigDataCache(ConfigDataCache configDataCache) Set the asynchronously-controlled cache.voidsetTransactionService(TransactionService transactionService) Methods inherited from class org.springframework.extensions.config.xml.XMLConfigService
parse, parseFragment, setProperties, setSystemPropertiesModeNameMethods inherited from class org.springframework.extensions.config.BaseConfigService
addConfigSection, addConfigSection, addDeployer, addEvaluator, appendConfig, createEvaluator, getConfig, getConfig, getConfig, getEvaluator, getGlobalConfig, init, parse, processSectionMethods inherited from class org.springframework.extensions.surf.util.AbstractLifecycleBean
getApplicationContext, onApplicationEvent, setApplicationContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.repo.tenant.TenantDeployer
init
-
Constructor Details
-
RepoXMLConfigService
public RepoXMLConfigService(org.springframework.extensions.config.ConfigSource configSource) Constructs an XMLConfigService using the given config source
-
-
Method Details
-
setTransactionService
-
setConfigDataCache
Set the asynchronously-controlled cache. -
initConfig
- Overrides:
initConfigin classorg.springframework.extensions.config.xml.XMLConfigService
-
getRepoConfig
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:
destroyin interfaceTenantDeployer- Overrides:
destroyin classorg.springframework.extensions.config.xml.XMLConfigService
-
reset
public void reset()Resets the config values for the current tenant- Specified by:
resetin interfaceorg.springframework.extensions.config.ConfigService- Overrides:
resetin classorg.springframework.extensions.config.BaseConfigService
-
onBootstrap
protected void onBootstrap(org.springframework.context.ApplicationEvent event) - Overrides:
onBootstrapin classorg.springframework.extensions.config.BaseConfigService
-
onShutdown
protected void onShutdown(org.springframework.context.ApplicationEvent event) - Overrides:
onShutdownin classorg.springframework.extensions.config.BaseConfigService
-
onEnableTenant
public void onEnableTenant()- Specified by:
onEnableTenantin interfaceTenantDeployer
-
onDisableTenant
public void onDisableTenant()- Specified by:
onDisableTenantin interfaceTenantDeployer
-
getGlobalConfigImpl
protected org.springframework.extensions.config.ConfigImpl getGlobalConfigImpl()- Overrides:
getGlobalConfigImplin classorg.springframework.extensions.config.BaseConfigService
-
putGlobalConfig
protected void putGlobalConfig(org.springframework.extensions.config.ConfigImpl globalConfig) - Overrides:
putGlobalConfigin classorg.springframework.extensions.config.BaseConfigService
-
removeGlobalConfig
protected void removeGlobalConfig()- Overrides:
removeGlobalConfigin classorg.springframework.extensions.config.BaseConfigService
-
getEvaluators
- Overrides:
getEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
putEvaluators
protected void putEvaluators(Map<String, org.springframework.extensions.config.evaluator.Evaluator> evaluators) - Overrides:
putEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
removeEvaluators
protected void removeEvaluators()- Overrides:
removeEvaluatorsin classorg.springframework.extensions.config.BaseConfigService
-
getSectionsByArea
- Overrides:
getSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
putSectionsByArea
protected void putSectionsByArea(Map<String, List<org.springframework.extensions.config.ConfigSection>> sectionsByArea) - Overrides:
putSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
removeSectionsByArea
protected void removeSectionsByArea()- Overrides:
removeSectionsByAreain classorg.springframework.extensions.config.BaseConfigService
-
getSections
- Overrides:
getSectionsin classorg.springframework.extensions.config.BaseConfigService
-
putSections
- Overrides:
putSectionsin classorg.springframework.extensions.config.BaseConfigService
-
removeSections
protected void removeSections()- Overrides:
removeSectionsin classorg.springframework.extensions.config.BaseConfigService
-
getElementReaders
protected Map<String,org.springframework.extensions.config.xml.elementreader.ConfigElementReader> getElementReaders()- Overrides:
getElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-
putElementReaders
protected void putElementReaders(Map<String, org.springframework.extensions.config.xml.elementreader.ConfigElementReader> elementReaders) - Overrides:
putElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-
removeElementReaders
protected void removeElementReaders()- Overrides:
removeElementReadersin classorg.springframework.extensions.config.xml.XMLConfigService
-