Hi,

What do you think about adding an interface such as

package org.apache.avalon.framework.activity;

interface Executable
{
  void execute() throws Exception;
}

The main reason it wasn't accepted last time I lobbied for it was that it was 
too like Runnable. However the one difference is that it allows an exception 
to be thrown. This is important in a number of scenarios. Most importantly it 
will be important in upcoming threading code when I rework it ;)

It will also reduce duplication across a number of projects I work on (all of 
which have an equivelent interface). The other style interface I use is

interface Action
{
  void performAction() throws Exception;
}

However that clashes with the swing framework so I would prefer to use 
Executable if at all possible ;)

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to