cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject Re: Introducing IOC for Java classes created in flowscript
Date Fri, 21 Nov 2003 12:07:18 GMT
Bertrand Delacretaz dijo:
>> ..Instead of an object of a Java class Foo being hardcoded (and
>> supposedly feared by hardcore scripters due to compilation/packaging
>> requirements), it would result into something along the lines of
>>
>>>  var foo =
>>> BeanShell.newObjectFromScript("myScriptedBusinessLogic.bs");
>>>  cocoon.setupObject(foo);
>>>  foo.doIt("blah"); ...
>
> Exactly: allowing BeanShell (or any BSF) scripts could be used not only
> for Generators and Actions (as the BSF block currently does), but for
> scriptable business logic (and why not transformers or serializers by
> the way).
>
> In this context, BSF scripts do not need any continuation support,
> they're used as java objects would be.
>
> Depending on how you look at it, it might open wide avenues or a can of
> worms ;-)
>
> But being able to prototype business logic in interpreted java code
> would be a big plus IMHO.  Not to mention a great teaching tool.

+1

Best Regards,

Antonio Gallardo

Mime
View raw message