|Re: How to access settings from config.ini [message #1057737 is a reply to message #1057723]
||Wed, 08 May 2013 09:57
| Arthur vD
Registered: March 2010
If you extend an org.eclipse.scout.service.AbstractService and add a field with a setter and a getter you can use the myPackage.MyService#myFieldName=myValue style lines in the config.ini. For your own classes not extending AbstractService you can use ServiceUtility.injectConfigProperties(this) to inject the properties. You'd still have to have a field following the bean conventions.
EDIT: Or use the free style properties as Jeremie has explained.
[Updated on: Wed, 08 May 2013 09:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01837 seconds