Re: Default permission: "*" or "-"
Eamonn McManus <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Simone, [email protected] wrote: >> > The spec says ("Foo", null, null) == "Foo#-[-]". >> > >> > I would have preferred that the specification said >> > >> > ("Foo", null, null) == "Foo#*[*:*]" >> > >> > but there it is (and I think it's a mistake). >> >>This is just a convention we had to choose to define the meaning of a null >>value in a NEED permission. >> >>We had 2 possibilities: >> >>(1) null in NEED permission means "-" >> >>or >> >>(2) null in NEED permission means "*" >> >>We finally implemented (1) but I don't think this was a mistake. In fact, >>I >>see more precise to associate "null" with "nothing allowed" than "null" >>with >>"all allowed". > > I agree that this is a convention. > It's just I would have preferred null == "*", but that also is my opinion :) This is not just a question of opinion. We need a way to say "no ObjectName" and a way to say "all ObjectNames". There is already a way to say "all ObjectNames", namely ObjectName("*:*"). But there is no way to say "no ObjectNames", so we use null for that. Regards, Éamonn McManus JMX Spec Lead +33 476 188 352 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click