public class JSONPropertySource extends Object implements PropertySource
TAMAYA_ORDINAL| Constructor and Description |
|---|
JSONPropertySource(URL resource)
Constructor, hereby using 0 as the default ordinal.
|
JSONPropertySource(URL resource,
int defaultOrdinal)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key) |
String |
getName() |
int |
getOrdinal() |
Map<String,String> |
getProperties() |
boolean |
isScannable() |
protected Map<String,String> |
readConfig(URL urlResource)
Reads the configuration.
|
public JSONPropertySource(URL resource)
resource - the resource modelled as URL, not null.public JSONPropertySource(URL resource, int defaultOrdinal)
resource - the resource modelled as URL, not null.defaultOrdinal - the defaultOrdinal to be used.public int getOrdinal()
getOrdinal in interface PropertySourcepublic String getName()
getName in interface PropertySourcepublic String get(String key)
get in interface PropertySourcepublic Map<String,String> getProperties()
getProperties in interface PropertySourcepublic boolean isScannable()
isScannable in interface PropertySourceCopyright © 2015 Apache Software Foundation. All rights reserved.