On Sun, Jan 04, 2015 at 07:28PM, Roman Shaposhnik wrote:
> On Sun, Jan 4, 2015 at 7:21 PM, Konstantin Boudnik <[email protected]> wrote:
> > Following your example you should be able to do something like
> >
> >     GreetingTask {
> >       greeting = System.properties['GreetingTask.greeting'] ?: 'roman'
> >     }
> >
> > which will produce the desired result, no?
> 
> Totally! I was just hoping for a little bit of magic setters. But may be
> being explicit is actually a good thing.

Yeah, I hear you. I've tried to play with a couple of different things, but
couldn't find a good way to auto-magically influence a class' member via a
sysprop.

Cos

Reply via email to