cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: Startable components
Date Tue, 18 Oct 2005 07:22:19 GMT
> -----Oorspronkelijk bericht-----
> Van: Sylvain Wallez [mailto:sylvain@apache.org]
> Verzonden: maandag 17 oktober 2005 18:30
> Aan: dev@cocoon.apache.org
> Onderwerp: Startable components
> 
> Hi all,
> 
> I changed the lazy loading so that preload="true" is no more needed
for
> components that *must* be loaded at startup time.
> 

Why are marker interfaces preferred over this configuration style? These
interfaces introduce another dependency on Avalon. I think it is better
to not have these code dependencies, but to use configuration. This
makes it easier to host those components in other containers as well,
such as Spring. Same for the ThreadSafe marker interface, the
Initializable and the Disposable interfaces (configure a method to do
initialization/disposing of the object instead of implementing an
interface).

And I thought that people here rather move away from Avalon's
interfaces. Then why introduce another dependency on it, when
configuration can do the same?

Just curious.

Bart.


Mime
View raw message