boardtc (8) [Avatar] Offline
#1
Taking up the Agile Java thinking that property files are an arbitrary collection of global variables and one should instead prefer to carefully associate configurable value with the classes they impact, though the use of a database.

On page 358 I read about GORM (grails) and am wondering if it would help in this instance? Could it be used to load config value for a .groovy class?

I am currently introducing Groovy into our java backend mix and had not considered grails as something that we would use in this instance.

Tom.
Mittie (397) [Avatar] Offline
#2
Re: GORM for config values?
> Taking up the Agile Java thinking that
> property files are an arbitrary collection of global
> variables and one should instead prefer to carefully
> associate configurable value with the classes they
> impact, though the use of a database.

I agree that property files are often misused.
That doesn't necessarily mean that storing such
values in a db is a better solution in itself smilie

> On page 358 I read about GORM (grails) and am
> wondering if it would help in this instance? Could it
> be used to load config value for a .groovy class?
> I am currently introducing Groovy into our java
> backend mix and had not considered grails as
> something that we would use in this instance.

Beside being a great web application framework,
Grails is also a superb platform for any kind of
application development. It comes with elaborate
means of configuration, e.g. by smart usage of
Groovy's ConfigSlurper.
If you ever decide to put configuration parts in a
db, GORM certainly helps to manage that
configuration.

BTW: For topics like this one that is not closely
bound to the book itself but concerns Groovy/
Grails usage in general, please consider posting
them to user@groovy.codehaus.org.
Thanks for your understanding.

keep groovin'
Dierk