public class FileHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
loadProperties(String name)
Loads properties.
Tries to load from filesystem first, then from classpath. |
static Properties |
loadProperties(String name,
boolean asResource)
Loads properties.
|
public static Properties loadProperties(String name, boolean asResource) throws IOException
name - the properties name, null if return empty propertiesasResource - true if load from the classpath, false if from filesystemIOException - if reading the property file failedFileNotFoundException - if no properties foundpublic static Properties loadProperties(String name) throws IOException
name - the properties name, null if return empty propertiesIOException - if reading the property file failedFileNotFoundException - if no properties foundTentackle - distributed, domain- and model-driven