Hi Susinda,

In configuration class, do we treat all properties as Strings? Or what if
> we make the parsing within this config class.?
>

No, we can have any type. and we don't need to parse within the config
class. My example bit confusing, it has only String values. meant to show
how to add annotations.
We can write normal bean class with default values, only addition is to put
annotations to the class.
We use snakeYAML apis to load bean class from yaml configs.

Thanks
-- 

*Danesh Kuruppu*
Senior Software Engineer | WSO2

Email: [email protected]
Mobile: +94 (77) 1690552
Web: WSO2 Inc <https://wso2.com/signature>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to