public class SakaiProperties.SakaiPropertiesFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean
| Modifier and Type | Field and Description |
|---|---|
static String |
XML_FILE_EXTENSION |
| Constructor and Description |
|---|
SakaiPropertiesFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected Object |
createInstance() |
Map<String,Properties> |
getLoadedProperties() |
Object |
getObject() |
Class |
getObjectType() |
boolean |
isSingleton() |
protected void |
loadProperties(Properties props)
Load properties into the given instance.
|
protected Properties |
mergeProperties()
Return a merged Properties instance containing both the loaded properties
and properties set on this FactoryBean.
|
void |
setFileEncoding(String encoding) |
void |
setIgnoreResourceNotFound(boolean ignoreResourceNotFound) |
void |
setLocalOverride(boolean localOverride) |
void |
setLocation(org.springframework.core.io.Resource location) |
void |
setLocations(org.springframework.core.io.Resource[] locations) |
void |
setProperties(Properties properties) |
void |
setPropertiesArray(Properties[] propertiesArray) |
void |
setPropertiesPersister(org.springframework.util.PropertiesPersister propertiesPersister) |
void |
setSingleton(boolean singleton) |
public static final String XML_FILE_EXTENSION
public Map<String,Properties> getLoadedProperties()
public final void setSingleton(boolean singleton)
public final boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBeanpublic final void afterPropertiesSet()
throws IOException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanIOExceptionpublic final Object getObject() throws IOException
getObject in interface org.springframework.beans.factory.FactoryBeanIOExceptionpublic Class getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBeanprotected Object createInstance() throws IOException
IOExceptionpublic 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 setLocalOverride(boolean localOverride)
public void setIgnoreResourceNotFound(boolean ignoreResourceNotFound)
public void setFileEncoding(String encoding)
public void setPropertiesPersister(org.springframework.util.PropertiesPersister propertiesPersister)
protected Properties mergeProperties() throws IOException
IOExceptionprotected void loadProperties(Properties props) throws IOException
props - the Properties instance to load intoIOException - in case of I/O errorssetLocations(org.springframework.core.io.Resource[])Copyright © 2003–2020 The Sakai Foundation. All rights reserved.