> -----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).
> There comes two questions for the need for this approach:
>
> 1) If we are talking about NEEDED components that the calling Component
> must have in order to work, then we need to strengthen the contract
> between the parent and child Components. The Parent MUST know what
> its children NEED. Anything less is an incorrectly designed system.
>
> 2) If we are talking about OPTIONAL components that the calling Component
> would like to have for ADDITIONAL functionality, then this approach
> greatly simplifies coding. The Parent still must know what the child
> NEEDS, but is not required to supply any OPTIONAL components.
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.
/LS
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]