|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ploin.pmf.impl.PropertiesLoader
public class PropertiesLoader
Description: Implementation of the IPropertiesLoader interface.
This class is responsible to read 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#
| Constructor Summary | |
|---|---|
PropertiesLoader()
|
|
| 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 mandant,
java.lang.String key)
Returns a message with the key "key" from the property file. |
java.util.Properties |
getProperties(java.lang.String mandant,
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 mandant,
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesLoader()
| Method Detail |
|---|
public java.lang.String getMessage(java.lang.String key)
IPropertiesLoader
getMessage in interface IPropertiesLoaderkey - :the key to search
public java.lang.String getMessage(java.lang.String mandant,
java.lang.String key)
IPropertiesLoader
getMessage in interface IPropertiesLoadermandant - :the client/mandant for the mailkey - :the key to search
public java.util.Map<java.lang.String,java.lang.String> replaceVariables(TemplateConfig templateConfig)
IPropertiesLoader
replaceVariables in interface IPropertiesLoadertemplateConfig - containing mandant/client, locale, template-name and map.
public java.util.Properties getProperties(java.lang.String mandant,
java.lang.String propName)
IPropertiesLoader
getProperties in interface IPropertiesLoadermandant - - the client to the mailpropName - - the name of the properties file
public java.util.Properties getPropertiesFromMandant(java.lang.String mandant,
java.lang.String propName)
IPropertiesLoadernull.
getPropertiesFromMandant in interface IPropertiesLoadermandant - - the client to the mailpropName - - the file name of the properties file.
public java.util.Properties getPropertiesFromDirectory(java.lang.String propName)
IPropertiesLoadernull.
getPropertiesFromDirectory in interface IPropertiesLoaderpropName - - the client to the mail
public java.util.Properties getPropertiesFromRoot(java.lang.String propName)
IPropertiesLoadernull.
getPropertiesFromRoot in interface IPropertiesLoaderpropName - - the client to the mail
public java.lang.String getDirectory()
IPropertiesLoader
getDirectory in interface IPropertiesLoaderpublic void setDirectory(java.lang.String directory)
IPropertiesLoader
setDirectory in interface IPropertiesLoaderdirectory - - path to the directory there the mail-templates are placed.public java.lang.String getPropFile()
IPropertiesLoader
getPropFile in interface IPropertiesLoaderpublic void setPropFile(java.lang.String propFile)
IPropertiesLoader
setPropFile in interface IPropertiesLoaderpropFile - - the name of the properties files.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||