Hi Ishara, You can set those variable values in configuration bean constructor. Inside the constructor, you read the system properties and assign it to the variable.
Thanks Danesh On Fri, Dec 23, 2016 at 12:10 PM, Ishara Cooray <isha...@wso2.com> wrote: > With the new Global configuration model in carbon 5.2.0, we need to define > default values for configurations in configuration bean. > > Earlier we used to have some configurations as system properties. > For instance we define token url as > > > > * tokenURL = "https://${carbon.local.ip}:${https.nio.port}/token"* > In C5, what could be the best way to define such properties in > configuration bean classes. > > Can we get the ip and port + port offset from carbonConfiguration and > append to derive the value? > Or is there a better way to do this as string concatenation is costly? > > > Thanks & Regards, > Ishara Cooray > Senior Software Engineer > Mobile : +9477 262 9512 <+94%2077%20262%209512> > WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > _______________________________________________ > Architecture mailing list > Architecture@wso2.org > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- *Danesh Kuruppu* Senior Software Engineer | WSO2 Email: dan...@wso2.com Mobile: +94 (77) 1690552 Web: WSO2 Inc <https://wso2.com/signature>
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture