avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Simons <leosim...@apache.org>
Subject Re: Component Metadata and Metainfo model
Date Fri, 05 Jul 2002 07:25:35 GMT
okay. Would suggest provides() then

ie SomeService 1.3.4 provide()s 1.3, but SomeService 1.3 doesn't
provide() 1.3.4

- Leo 

On Fri, 2002-07-05 at 09:12, Peter Donald wrote:
> At 09:08 AM 7/5/2002 +0200, you wrote:
> > >     interface ServiceDesignator
> > >     {
> > >         Version getVersion();
> > >         String getClassname();
> > >         boolean matches( ServiceDesignator service );
> > >     }
> >
> >okay. "matches()" is stupid though -- there's equals() to do just that.
> >Right?
> 
> Matches is not the same as equals(). Matches allows you to have slightly 
> different version services (as long as they follow certain rules). ie 1.3.4 
> matches 1.3 but the reverse is not true.
> 
> Cheers,
> 
> Peter Donald
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> "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:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>
> 




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