org.kuali.common.util.config.service
Class AbstractCachingConfigService

java.lang.Object
  extended by org.kuali.common.util.config.service.AbstractCachingConfigService
All Implemented Interfaces:
ConfigService
Direct Known Subclasses:
DefaultConfigService, SpringConfigService

public abstract class AbstractCachingConfigService
extends Object
implements ConfigService


Constructor Summary
AbstractCachingConfigService()
           
 
Method Summary
protected abstract  void clearCache()
           
protected  ContextConfig findContextConfig(List<ContextConfig> contexts, String contextId)
           
protected  List<Location> findLocations(ProjectConfig request)
           
protected  Properties getBaseFilterProperties()
           
protected abstract  ProjectConfigContainer getCachedConfig(String groupId, String artifactId)
           
protected abstract  String getFilename()
           
protected  String getFilteredContent(String location, Properties properties, String encoding)
           
protected  Properties getFilterProperties(Project project)
           
protected  List<Location> getLocations(List<ProjectConfig> configs)
           
protected  String getMetadataConfigFilePath(Project project, String filename)
           
protected abstract  ProjectConfigContainer getProjectConfig(String content, String encoding)
           
 Properties getProperties(List<String> configIds)
          Load and return properties corresponding to configIds.
 Properties getProperties(List<String> configIds, Properties overrides)
          Load and return properties corresponding to configIds, any properties from overrides "win" over properties loaded from the configuration.
 Properties getProperties(String configId)
          Load and return properties corresponding to configId.
 Properties getProperties(String configId, Properties overrides)
          Load and return properties corresponding to configId, any properties from overrides "win" over properties loaded from the configuration.
protected  ProjectConfigContainer loadMetadata(String groupId, String artifactId)
           
protected  Properties loadProperties(List<ProjectConfig> requests, Properties overrides)
           
protected  void store(File file, ProjectConfigContainer config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCachingConfigService

public AbstractCachingConfigService()
Method Detail

getProperties

public Properties getProperties(String configId)
Description copied from interface: ConfigService
Load and return properties corresponding to configId.
  org.kuali.common:kuali-sql
  org.kuali.common:kuali-util:scm
  org.kuali.common:kuali-util:metainf:mpx
 

Specified by:
getProperties in interface ConfigService

getProperties

public Properties getProperties(List<String> configIds)
Description copied from interface: ConfigService
Load and return properties corresponding to configIds.
  org.kuali.common:kuali-sql
  org.kuali.common:kuali-util:scm
  org.kuali.common:kuali-util:metainf:mpx
 

Specified by:
getProperties in interface ConfigService

getProperties

public Properties getProperties(String configId,
                                Properties overrides)
Description copied from interface: ConfigService
Load and return properties corresponding to configId, any properties from overrides "win" over properties loaded from the configuration.
  org.kuali.common:kuali-sql
  org.kuali.common:kuali-util:scm
  org.kuali.common:kuali-util:metainf:mpx
 

Specified by:
getProperties in interface ConfigService

getProperties

public Properties getProperties(List<String> configIds,
                                Properties overrides)
Description copied from interface: ConfigService
Load and return properties corresponding to configIds, any properties from overrides "win" over properties loaded from the configuration.
  org.kuali.common:kuali-sql
  org.kuali.common:kuali-util:scm
  org.kuali.common:kuali-util:metainf:mpx
 

Specified by:
getProperties in interface ConfigService

getCachedConfig

protected abstract ProjectConfigContainer getCachedConfig(String groupId,
                                                          String artifactId)

clearCache

protected abstract void clearCache()

getProjectConfig

protected abstract ProjectConfigContainer getProjectConfig(String content,
                                                           String encoding)

getFilename

protected abstract String getFilename()

loadProperties

protected Properties loadProperties(List<ProjectConfig> requests,
                                    Properties overrides)

getBaseFilterProperties

protected Properties getBaseFilterProperties()

loadMetadata

protected ProjectConfigContainer loadMetadata(String groupId,
                                              String artifactId)

getLocations

protected List<Location> getLocations(List<ProjectConfig> configs)

findLocations

protected List<Location> findLocations(ProjectConfig request)

findContextConfig

protected ContextConfig findContextConfig(List<ContextConfig> contexts,
                                          String contextId)

getMetadataConfigFilePath

protected String getMetadataConfigFilePath(Project project,
                                           String filename)

getFilteredContent

protected String getFilteredContent(String location,
                                    Properties properties,
                                    String encoding)

getFilterProperties

protected Properties getFilterProperties(Project project)

store

protected void store(File file,
                     ProjectConfigContainer config)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.