org.apache.commons.discovery.tools
Class PropertiesHolder
java.lang.Object
org.apache.commons.discovery.tools.PropertiesHolder
public class PropertiesHolder
extends java.lang.Object
Holder for a default class.
Class may be specified by name (String) or class (Class).
Using the holder complicates the users job, but minimized # of API's.
PropertiesHolder
public PropertiesHolder(Properties properties)
PropertiesHolder
public PropertiesHolder(String propertiesFileName)
getProperties
public Properties getProperties(SPInterface spi,
ClassLoaders loaders)
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. Load the properties if necessary.
getPropertiesFileName
public String getPropertiesFileName()
Copyright (c) 2002 - Apache Software Foundation