kumuluz / kumuluzee

Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
https://ee.kumuluz.com
MIT License
291 stars 71 forks source link

Retrieve a `Long` from a config value #45

Closed TFaga closed 7 years ago

TFaga commented 7 years ago

The config framework has the ability to retrieve values as a String, Integer, Double, Float and Boolean, but notLong. We need to add support for the latter as well. Also make sure to update theConfigurationValueTypeenum and thegetType` function of the util.

Optional<Long> value = ConfigurationUtil.getInstance().getLong("key");