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 PropertySource
public String getName()
getName
in interface PropertySource
public String get(String key)
get
in interface PropertySource
public Map<String,String> getProperties()
getProperties
in interface PropertySource
public boolean isScannable()
isScannable
in interface PropertySource
Copyright © 2015 Apache Software Foundation. All rights reserved.