|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.texen.util.PropertiesUtil
A property utility class for the texen text/code generator Usually this class is only used from a Velocity context.
| Constructor Summary | |
PropertiesUtil()
|
|
| Method Summary | |
Properties |
load(String propertiesFile)
Load properties from either a file in the templatePath if there is one or the classPath. |
protected Properties |
loadFromClassPath(String propertiesName)
Load a properties file from the classpath |
protected Properties |
loadFromTemplatePath(String propertiesFile)
Load a properties file from the templatePath defined in the generator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PropertiesUtil()
| Method Detail |
public Properties load(String propertiesFile)
propertiesFile - the properties file to load through
either the templatePath or the classpath.
protected Properties loadFromTemplatePath(String propertiesFile)
throws Exception
propertiesFile - the properties file to load. It must be
a relative pathname.
Exception
protected Properties loadFromClassPath(String propertiesName)
throws Exception
propertiesName - the properties file to load.
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||