avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Simons" <m...@leosimons.com>
Subject [vote] lifecycle exceptions
Date Tue, 10 Apr 2001 08:11:13 GMT
proposal:
For 4.0 of the framework code, CascadingException
is updated to extend RuntimeException, and new exceptions
are created for all lifecycle methods except run(), stop()
and dispose().

So:
contextualize() throws ContextualizationException
init() throws InitializationException
etc.

For:
- existing code has already proven the exceptions are
  neccessary. We need to add them.
- making use of RuntimeException means that existing code
  will be able to compile and run if the exceptions are
  not actually thrown.
- since the lifecycle exceptions are indeed (almost
  always) runtime exceptions, this setup is also
  correct.

Against:
- a significant body of existing code that uses avalon will
  have to be updated to work with the new release (OTOH, it
  will be a lot more work to change this later).
- does Cocoon2 have the time to update to this before the
  beta? (if not, I propose the same change for 4.1)

cheers!

LSD

<java:sig>
	About LSD  = new PersonalInfo();
	LSD.name("Leo Simons");
	LSD.email("mail@leosimons.com");
	LSD.URL( [
		http://www.leosimons.com, // personal website
		http://www.atfantasy.com, // fantasy RPG portal
		http://www.the-sign.nl    // web-design company
	] );
	LSD.quote("Buh!");
	email.setSig((String)LSD);
</java:sig> 

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message