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.
- Author:
- Richard A. Sitze
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesHolder
public PropertiesHolder(java.util.Properties properties)
PropertiesHolder
public PropertiesHolder(java.lang.String propertiesFileName)
getProperties
public java.util.Properties getProperties(SPInterface spi,
ClassLoaders loaders)
- 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.
getPropertiesFileName
public java.lang.String getPropertiesFileName()
Copyright (c) 2002 - Apache Software Foundation