Hi Dominik!
I honestly dropped the commons-configuration in rocoto a long time
ago, due to its nature of binding variables in its own dom tree, but
this is something easy to manage due to Rocoto's interfaces to bind
properties.
Moreover, I was looking for a lightweight and dependencies-less
solution, but definitively commons-configuration support could be
released as a secondary module.
I wouldn't add a layer of custom annotations, but rather extending the
@Named JSR330/Guice's ones, something like:
@Named( "${service.port|8080}" )
private int port;
using a syntax Rocoto's users are already used to, in that way if
`service.port` property is not available, 8080 will be used as
default.
Sisu-Inject already supports dynamic variable interpolation in @Named
annotations, I should read that code more carefully.
WDYT?
best,
On Tue, Aug 14, 2012 at 11:23 AM, Dominik Obermaier