So is there any objection to me adding Executable ( I will update all the 
docs as appropriate).

On Tue, 17 Jul 2001 09:14, Peter Donald wrote:
> On Tue, 17 Jul 2001 05:31, Berin Loritsch wrote:
> > Peter Donald wrote:
> > > 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 ;)
> >
> > Is this used for Callbacks?  The reason I ask is because I want to know
> > if this is designed for Components or light-weight executable objects. 
> > That is what the "Action" interface below seems to infer.  The
> > "Executable" interface seems too broad in scope for my tastes.
>
> It can be but not necessarily. It is essentially a replacement for Runnable
> with the addition that it can throw exceptions. So everywhere you could use
> runnable you should be able to use executable. So it can be both long
> running and for short call backs. However at this stage I am primarily
> interested in the long-running aspects.
>
> 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]

-- 
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