Friday 19 September 2008

groovy spring annotation

Hmmm.

Groovy supports well spring's annotations.
Spring's dynamic language tags are also handy.

But I wish there was some dynamic language annotation!

As in eg, I have a Service written in Groovy such as:

@Service
class PersonService {

@Autowired
PersonRepository

blah blah ...

}

wouldn't be nice if I could:

@Service
@DynamicScript("Groovy")
class PersonService {

@Autowired
PersonRepository

blah blah ...

}

thus enabling it to be a refreshable bean without xml!

No comments: