Class JsonSmartConfigurationHelper
- java.lang.Object
-
- net.obvj.confectory.internal.helper.GenericJsonConfigurationHelper<net.minidev.json.JSONObject>
-
- net.obvj.confectory.internal.helper.JsonSmartConfigurationHelper
-
- All Implemented Interfaces:
ConfigurationDataRetriever<net.minidev.json.JSONObject>,ConfigurationHelper<net.minidev.json.JSONObject>
public class JsonSmartConfigurationHelper extends GenericJsonConfigurationHelper<net.minidev.json.JSONObject>
A specialized Configuration Helper that retrieves data fromnet.minidev's (json-smart)JSONObject, with JSONPath capabilities.- Since:
- 1.0.1
- Author:
- oswaldo.bapvic.jr (Oswaldo Junior)
-
-
Constructor Summary
Constructors Constructor Description JsonSmartConfigurationHelper(net.minidev.json.JSONObject jsonObject)Creates a new helper for the givenJSONObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationMerger<net.minidev.json.JSONObject>configurationMerger()Creates the applicableConfigurationMergerobject for the type associated with thisConfigurationHelper.StringgetAsString()Returns a string representation of the bean used by this data retriever, typically for manual handling and/or troubleshooting purposes.-
Methods inherited from class net.obvj.confectory.internal.helper.GenericJsonConfigurationHelper
get, getBean, getBoolean, getDouble, getInteger, getLong, getMandatoryBoolean, getMandatoryDouble, getMandatoryInteger, getMandatoryLong, getMandatoryString, getString
-
-
-
-
Method Detail
-
configurationMerger
public ConfigurationMerger<net.minidev.json.JSONObject> configurationMerger()
Description copied from interface:ConfigurationHelperCreates the applicableConfigurationMergerobject for the type associated with thisConfigurationHelper.- Returns:
- a new
ConfigurationMergerinstance
-
getAsString
public String getAsString()
Description copied from interface:ConfigurationDataRetrieverReturns a string representation of the bean used by this data retriever, typically for manual handling and/or troubleshooting purposes.- Returns:
- a compact string representation of the
JSONObjectin context - Since:
- 2.5.0
-
-