org.apache.commons.discovery.tools
public class PropertiesHolder extends Object
| Constructor Summary | |
|---|---|
| PropertiesHolder(Properties properties) | |
| PropertiesHolder(String propertiesFileName) | |
| Method Summary | |
|---|---|
| Properties | getProperties(SPInterface spi, ClassLoaders loaders) |
| String | getPropertiesFileName() |
Parameters: spi Optional SPI (may be null). If provided, an attempt is made to load the property file as-per Class.getResource(). loaders Used only if properties need to be loaded.
Returns: Properties. Load the properties if necessary.