|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.persistence.impl.PropertiesDaoImpl
public class PropertiesDaoImpl
Reads properties files from the property file folder (Currently Resources) Adapted from EP4 PropertiesDaoImpl.
| Field Summary | |
|---|---|
static java.lang.String |
PROPERTIES_SUFFIX
File name suffix for properties files. |
| Constructor Summary | |
|---|---|
PropertiesDaoImpl()
|
|
| Method Summary | |
|---|---|
ElasticPath |
getElasticPath()
Get the ElasticPath instance. |
java.util.Properties |
getPropertiesFile(java.lang.String propertyFileName)
Get the properties of the given filename, takes filename with properties extension or without extension. |
java.util.Map |
loadProperties()
Go through the resources directory and load all the .properties file into the hashMap with the filename (without ".properties") as the key. |
void |
setElasticPath(ElasticPath elasticPath)
Set the ElasticPath instance. |
void |
setPropertiesDir(java.lang.String propertiesDir)
Set the name of the alternative properties directory. |
void |
storePropertiesFile(java.util.Properties property,
java.lang.String propertyFileName)
Persist the properties object to file, takes filename with properties extension or without extension. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTIES_SUFFIX
| Constructor Detail |
|---|
public PropertiesDaoImpl()
| Method Detail |
|---|
public ElasticPath getElasticPath()
ElasticPath instance.
getElasticPath in interface PropertiesDaoElasticPath instance.public java.util.Properties getPropertiesFile(java.lang.String propertyFileName)
getPropertiesFile in interface PropertiesDaopropertyFileName - the filename of the properties file
public java.util.Map loadProperties()
throws EpPersistenceException
loadProperties in interface PropertiesDaoEpPersistenceException - TODOpublic void setElasticPath(ElasticPath elasticPath)
ElasticPath instance.
setElasticPath in interface PropertiesDaoelasticPath - the instance of ElasticPathpublic void setPropertiesDir(java.lang.String propertiesDir)
setPropertiesDir in interface PropertiesDaopropertiesDir - the directory containing properties files
public void storePropertiesFile(java.util.Properties property,
java.lang.String propertyFileName)
storePropertiesFile in interface PropertiesDaoproperty - the properties object to store to filepropertyFileName - the filename for the properties
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||