public class PropertiesHolder
extends java.lang.Object
| Constructor and Description |
|---|
PropertiesHolder(java.util.Properties properties)
Creates a new
PropertiesHolder instance given an
already load Properties set. |
PropertiesHolder(java.lang.String propertiesFileName)
Creates a new
PropertiesHolder instance given a
property file name. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getProperties(SPInterface<?> spi,
ClassLoaders loaders)
Returns the
Properties instance, loaded if necessary from propertiesFileName. |
java.lang.String |
getPropertiesFileName()
Returns the property file name
|
public PropertiesHolder(java.util.Properties properties)
PropertiesHolder instance given an
already load Properties set.properties - The already load Properties setpublic PropertiesHolder(java.lang.String propertiesFileName)
PropertiesHolder instance given a
property file name.propertiesFileName - The property file namepublic java.util.Properties getProperties(SPInterface<?> spi, ClassLoaders loaders)
Properties instance, loaded if necessary from propertiesFileName.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.Properties, loaded if necessary.public java.lang.String getPropertiesFileName()
Copyright (c) 2002 - Apache Software Foundation