|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.util.SakaiProperties
public class SakaiProperties
A configurer for "sakai.properties" files. These differ from the usual Spring default properties files by mixing together lines which define property-value pairs and lines which define bean property overrides. The two can be distinguished because Sakai conventionally uses the bean name separator "@" instead of the default "." This class creates separate PropertyPlaceholderConfigurer and PropertyOverrideConfigurer objects to handle bean configuration, and loads them with the input properties. SakaiProperties configuration supports most of the properties documented for PropertiesFactoryBean, PropertyPlaceholderConfigurer, and PropertyOverrideConfigurer.
| Nested Class Summary | |
|---|---|
class |
SakaiProperties.SakaiPropertiesFactoryBean
Blatantly stolen from the Spring classes in order to get access to the properties files as they are read in, this could not be done by overrides because the stupid finals and private vars, this is why frameworks should never use final and private in their code.... |
| Constructor Summary | |
|---|---|
SakaiProperties()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
Collection<org.springframework.beans.factory.config.BeanFactoryPostProcessor> |
getBeanFactoryPostProcessors()
|
Properties |
getProperties()
INTERNAL |
Properties |
getRawProperties()
INTERNAL |
Map<String,Properties> |
getSeparateProperties()
Gets the individual properties from each properties file which is read in |
void |
setBeanNameAtEnd(boolean beanNameAtEnd)
|
void |
setBeanNameSeparator(String beanNameSeparator)
|
void |
setFileEncoding(String encoding)
|
void |
setIgnoreInvalidKeys(boolean ignoreInvalidKeys)
|
void |
setIgnoreResourceNotFound(boolean ignoreResourceNotFound)
|
void |
setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
|
void |
setLocalOverride(boolean localOverride)
|
void |
setLocation(org.springframework.core.io.Resource location)
|
void |
setLocations(org.springframework.core.io.Resource[] locations)
|
void |
setOrder(int order)
|
void |
setPlaceholderPrefix(String placeholderPrefix)
|
void |
setPlaceholderSuffix(String placeholderSuffix)
|
void |
setProperties(Properties properties)
|
void |
setPropertiesArray(Properties[] propertiesArray)
|
void |
setSearchSystemEnvironment(boolean searchSystemEnvironment)
|
void |
setSystemPropertiesMode(int systemPropertiesMode)
|
void |
setSystemPropertiesModeName(String constantName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SakaiProperties()
| Method Detail |
|---|
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic Collection<org.springframework.beans.factory.config.BeanFactoryPostProcessor> getBeanFactoryPostProcessors()
getBeanFactoryPostProcessors in interface BeanFactoryPostProcessorCreatorpublic Map<String,Properties> getSeparateProperties()
public Properties getProperties()
public Properties getRawProperties()
public void setProperties(Properties properties)
public void setPropertiesArray(Properties[] propertiesArray)
public void setLocation(org.springframework.core.io.Resource location)
public void setLocations(org.springframework.core.io.Resource[] locations)
public void setFileEncoding(String encoding)
public void setIgnoreResourceNotFound(boolean ignoreResourceNotFound)
public void setLocalOverride(boolean localOverride)
public void setIgnoreUnresolvablePlaceholders(boolean ignoreUnresolvablePlaceholders)
public void setOrder(int order)
public void setPlaceholderPrefix(String placeholderPrefix)
public void setPlaceholderSuffix(String placeholderSuffix)
public void setSearchSystemEnvironment(boolean searchSystemEnvironment)
public void setSystemPropertiesMode(int systemPropertiesMode)
public void setSystemPropertiesModeName(String constantName)
throws IllegalArgumentException
IllegalArgumentExceptionpublic void setBeanNameAtEnd(boolean beanNameAtEnd)
public void setBeanNameSeparator(String beanNameSeparator)
public void setIgnoreInvalidKeys(boolean ignoreInvalidKeys)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||