|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPropertiesLoader
Description: This class is responsible for reading properties files
........
.WHHUUVOOOOU&,
dMMMMMMMMMMMa, .MMMMF .MHW0Oz+!``````?G. .MMMM% .MMMMMMMMMMMN,
.MMMMMMMMMMMMMMr JMMMM JHHXwOz;:^..``` `O, JMMM# dMMMMMMMMMMMMN
JMMM# ,MMMMF MMMMF .MHVXwOz++.^.```` +n .MMMM$ .MMMMt dMMM#
.MMMMt .MMMMt .MMMM! JMHWWXwOz++.... `.+X JMMMM JMMMM .MMMM%
JMMM# .MMMM@ dMMM# ,MHHWWXwOzz+++....?df MMMMF .MMMMF JMMM#
.MMMMNNNNNMMMMMD MMMMMNNm 4MHHWWXXwOOzzz1+1wX'.MMMM! .MMMM` .MMMM$
.MMMMMMMMMMMM"` .YMMMMMF TMHHHWWWXXXwwwwXK! MMMMF MMMMF JMMMM
MMMMF TMMHHHHHWWWHY^
.MMMM' `7""""^`
dMMM#
| Method Summary | |
|---|---|
java.lang.String |
getDirectory()
Gets the path to the properties file. |
java.lang.String |
getMessage(java.lang.String key)
Returns a message with the key "key" from the property file "propFile". |
java.lang.String |
getMessage(java.lang.String client,
java.lang.String key)
Returns a message with the key "key" from the property file. |
java.util.Properties |
getProperties(java.lang.String client,
java.lang.String propName)
This method looks for a properties file with the given name "propName". It looks for a properties file in the following directories in this order: client directory mail directory class-root |
java.util.Properties |
getPropertiesFromDirectory(java.lang.String propName)
This method looks for a properties file with the given name "propName". It looks for the file only in the mail-directory. |
java.util.Properties |
getPropertiesFromMandant(java.lang.String client,
java.lang.String propName)
This method looks for a properties file with the given name "propName". It looks for the file only in the client-directory. |
java.util.Properties |
getPropertiesFromRoot(java.lang.String propName)
This method looks for a properties file with the given name "propName". It looks for the file only in the root-directory (class-root). |
java.lang.String |
getPropFile()
Gets the name of the properties file. |
java.util.Map<java.lang.String,java.lang.String> |
replaceVariables(TemplateConfig templateConfig)
This method replaces all variables (${variable}) in the map with values found in the mail.properties. |
void |
setDirectory(java.lang.String directory)
Sets the path to the properties file. |
void |
setPropFile(java.lang.String propFile)
Sets the name of the properties file. |
| Method Detail |
|---|
java.lang.String getMessage(java.lang.String key)
key - :the key to search
java.lang.String getMessage(java.lang.String client,
java.lang.String key)
client - :the client/mandant for the mailkey - :the key to search
java.util.Map<java.lang.String,java.lang.String> replaceVariables(TemplateConfig templateConfig)
templateConfig - containing mandant/client, locale, template-name and map.
java.util.Properties getProperties(java.lang.String client,
java.lang.String propName)
client - - the client to the mailpropName - - the name of the properties file
java.util.Properties getPropertiesFromMandant(java.lang.String client,
java.lang.String propName)
null.
client - - the client to the mailpropName - - the file name of the properties file.
java.util.Properties getPropertiesFromDirectory(java.lang.String propName)
null.
propName - - the client to the mail
java.util.Properties getPropertiesFromRoot(java.lang.String propName)
null.
propName - - the client to the mail
java.lang.String getDirectory()
void setDirectory(java.lang.String directory)
directory - - path to the directory there the mail-templates are placed.java.lang.String getPropFile()
void setPropFile(java.lang.String propFile)
propFile - - the name of the properties files.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||