|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.properties.core.PropertyLoaderImpl
public class PropertyLoaderImpl
Default implementation of properties loading.
| Field Summary | |
|---|---|
protected static ICache<String,List<Properties>> |
cache
Cache of properties. |
| Constructor Summary | |
|---|---|
PropertyLoaderImpl()
|
|
| Method Summary | |
|---|---|
List<Properties> |
load(String file)
Load a set of properties with the given name. |
protected List<Properties> |
loadUrls(List<URL> files)
Load given URLs to a properties object. |
protected void |
sort(List<Properties> props)
Sort property files using attribute index to order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static ICache<String,List<Properties>> cache
| Constructor Detail |
|---|
public PropertyLoaderImpl()
| Method Detail |
|---|
public List<Properties> load(String file)
throws PropertyLoaderException
IPropertyLoader
load in interface IPropertyLoaderfile - The file name.
PropertyLoaderException - On reading properties errors.
protected List<Properties> loadUrls(List<URL> files)
throws PropertyLoaderException
files - A list of file by URLs.
PropertyLoaderException - On loading erros.protected void sort(List<Properties> props)
props - The property files list.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||