|
From: Paul G. <pa...@pa...> - 2005-02-20 17:41:57
|
Paul Galbraith wrote:
> jbetancourt wrote:
>
>> There is support for scripting. I think it is part of the sandbox.
>> Thus,
>> you can use Beanshell, Groovy, etc.
>>
>> But, not sure if this is meant as a 'custom language' for bean
>> instantiation.
>>
>>
>>
> That might do the trick...can I use a groovy script to wire up my bean
> factories?
>
After thinking about this, I doubt scripting is what I'm interested
in...I imagine that any creation of a BeanFactory through a scripting
engine is still ultimately using the documented core Spring API?
I'm more interested in something declarative, such as the XML
declarations that are documented in the online reference...my motivation
for raising the idea is simply that XML isn't a great language to use
for interfacing with people. I was thinking of something more
java-like, such as a bean definition like:
singleton my.package.MyClass my.beannamespace.myBean
(my.beannamespace.myBean2) {
property String stringProperty "string-property";
property my.pacakge.myClass3 my.beannamespace.myBean3;
}
Obviously I haven't put a whole lot of thought into it...just wondering
if the same thing's already been discussed or considered?
|