public class PropertyLoaderImpl extends Object implements IPropertyLoader
| Modifier and Type | Field and Description |
|---|---|
protected static ICache<String,List<Properties>> |
cache
Cache of properties.
|
| Constructor and Description |
|---|
PropertyLoaderImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static ICache<String,List<Properties>> cache
public List<Properties> load(String file) throws PropertyLoaderException
IPropertyLoaderload 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.Copyright © 2016. All rights reserved.