creating module ids

Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Tue Nov 10 11:36:15 PST 2009


Mark Reinhold wrote:
>> Date: Tue, 10 Nov 2009 11:09:29 -0800
>> From: jonathan.gibbons at sun.com
>>     
>
>   
>> Mark Reinhold wrote:
>>     
>>> Ah, I didn't realize that was your use case -- you already
>>> have a Version object.  So how about
>>>
>>>     ModuleId.create(String name, Version version) ?
>>>       
>> That last suggestion would seem to be most excellent, with a corresponding one
>> for ModuleIdQuery.
>>     
>
> The ModuleIdQuery(String, VersionQuery) constructor is already public,
> and both ModuleId and ModuleIdQuery are final classes, so for now I'm
> just going to make the ModuleId(String, Version) constructor public
> too.
>
> - Mark
>   

Thanks.  For the record, Dependence also has a public constructor.

-- Jon



More information about the jigsaw-dev mailing list