Interface ConfigurationHelper<T>
-
- Type Parameters:
T- the source type which configuration data is to be retrieved
- All Superinterfaces:
ConfigurationDataRetriever<T>
- All Known Implementing Classes:
BasicConfigurationHelper,BeanConfigurationHelper,DocumentConfigurationHelper,GenericJsonConfigurationHelper,JsonSmartConfigurationHelper,NullConfigurationHelper,PropertiesConfigurationHelper
public interface ConfigurationHelper<T> extends ConfigurationDataRetriever<T>
An abstraction for objects that retrieve data from previously loadedConfigurationobjects.- Since:
- 0.1.0
- Author:
- oswaldo.bapvic.jr (Oswaldo Junior)
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description ConfigurationMerger<T>configurationMerger()Creates the applicableConfigurationMergerobject for the type associated with thisConfigurationHelper.static <T> ConfigurationHelper<T>newInstance(T bean, Mapper<T> mapper)Creates a newConfigurationHelperfor the givenMapper.-
Methods inherited from interface net.obvj.confectory.ConfigurationDataRetriever
get, getAsString, getBean, getBoolean, getDouble, getInteger, getLong, getMandatoryBoolean, getMandatoryDouble, getMandatoryInteger, getMandatoryLong, getMandatoryString, getString
-
-
-
-
Method Detail
-
newInstance
static <T> ConfigurationHelper<T> newInstance(T bean, Mapper<T> mapper)
Creates a newConfigurationHelperfor the givenMapper.If the specified
beanisnull, aNullConfigurationHelperwill be instantiated.- Type Parameters:
T- the bean type which configuration data is to be retrieved- Parameters:
bean- the bean to be evaluated; may benullmapper- theMapperwhose helper should be instantiated; notnull- Returns:
- a new
ConfigurationHelperinstance for the specifiedMapper - Throws:
NullPointerException- if the specified mapper isnull- Since:
- 2.2.0
-
configurationMerger
ConfigurationMerger<T> configurationMerger()
Creates the applicableConfigurationMergerobject for the type associated with thisConfigurationHelper.- Returns:
- a new
ConfigurationMergerinstance - Since:
- 2.2.0
-
-