cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject Standard Migration Patterns avalon -> spring ?
Date Fri, 02 Mar 2007 06:12:12 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to migrate the cocoon-cron block (I'll open an issues and
provide a patch as soon as I have it working icluding the samples) the
question about standard migration patterns arised.

We use a  lot of avalon exceptions which should also be replaced as
avalon is deprecated. So how to replace them?

- - All subclasses of org.apache.avalon.framework.CascadingException.

The avalon CascadingException was introduced, because at that time
java didn't support nested exeptions. This is no longer the case for
Java >= 1.4.

Some proposals:
org.apache.avalon.framework.CascadingException -> java.lang.Exception
org.apache.avalon.framework.CascadingError -> java.lang.Error
org.apache.avalon.framework.CascadingRuntimeException ->
java.lang.RuntimeException
org.apache.avalon.framework.CascadingThrowable -> java.lang.Throwable

org.apache.avalon.framework.service.ServiceException ->
org.springframework.beans.factory.BeanCreationException
org.apache.avalon.framework.configuration.ConfigurationException ->
org.springframework.beans.factory.BeanInitializationException


... to be continued.


WDYT?

Regards
Felix

 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF58A72lZVCB08qHERAtFjAKCqO2axxepNl3Wz3FJ7um4ONETaQQCgprKx
2D7d0a1Ej+RTmA9aBlV2ftc=
=FFQ4
-----END PGP SIGNATURE-----


Mime
View raw message