cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: Introducing IOC for Java classes created in flowscript
Date Fri, 21 Nov 2003 17:54:14 GMT
Sylvain Wallez wrote:

[...]

> Now what about adding a "disposeObject" on "cocoon" that would be the 
> counterpart of "setupObject"? It would call it's dispose() method if it 
> implements the Disposable interface.

Yes, this idea came into my mind too (it would
be strange if not the full lifecycle handling
was supported).

> We'll end up with 3 new methods on "cocoon":
> - setupObject(object),
> - createObject(classname) (or summon, new, instanciate)
> - disposeObject(object).
> 
> What do you think?

That would definitely simplify Flowscript development.

-- Andreas


Mime
View raw message