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("[EMAIL PROTECTED]");
        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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to