avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: [PROPOSAL] Context Defined
Date Mon, 09 Dec 2002 09:18:56 GMT
On Mon, 9 Dec 2002 20:06, Leo Sutic wrote:
> > From: Peter Donald [mailto:peter@realityforge.org]
> >
> > On Sun, 8 Dec 2002 21:20, Leo Sutic wrote:
> > > that is true. But how would you express Phoenix's BlockContext?
> > >
> > > It seems to me that you are reducing the context to a read-only map.
> >
> > A read only map with a type ;)
>
> But how do you express the requirement of requestShutdown ()?

Because the type has that method. ie

interface BlockContext
{
  ...
  void requestShutdown();
  ...
}


So anything that requires that type implicitly requires the method.

-- 
Cheers,

Peter Donald
*------------------------------------------------------*
| "Religion is what the common people see as true, the |
| wise people see as false, and the rulers see as      |
| useful" --Seneca                                     |
*------------------------------------------------------*


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


Mime
View raw message