Leo Sutic wrote:
>
> > -----Original Message-----
> > From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
> > Sent: den 30 juli 2001 14:30
> > To: Avalon Development
> > Subject: Re: [Vote] Discovery of Services
> >
> > Any simple boolean "discovery" methods should never throw an exception.
> > It only complicates matters.
>
> I agree. I wanted some way to signal an illegal state (not initialized,
> etc.), but I suppose that can be done using the IllegalStateException (which
> isa RuntimeException).
If it is an Illegal State (i.e. not initialized or disposed) then
the ComponentManager should return false. Requiring exception handling just
to determine the existance of a Component is too much overhead. The usability
is decreased in that case.
> The method is intended to be used in case 2. It is not my intention that the
> component should have to check whether a NEEDED role is present before doing
> a lookup.
Cool. I placed the initial version in CVS. I am having a few issues with
Cocoon, though. I am getting a mysterious NoSuchMethodError when in the
source, the method is clearly there.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]