Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding all mounted volumes



Jason Boyd <email@hidden> wrote:

>I will do everything possible to avoid platform-specific imps as it is
>easier for the end-users to add new known locations for future OSes than
>to incorporate new platform-specific classes into the distro. Or to
>distribute an updated known location list. Particularly if the app isn't
>being adequately maintained.

You should have a generic imp, in addition to whatever platform-aware ones
you have. Then the reason for doing a platform-specific imp is to act
smarter or faster or provide some other improvement over the generic imp.
As an analogy, java.io.File seems adequate at first glance for
platform-neutral file-system use. Eventually, though, its lack of
flexibility or extensibility mechanisms ends up hindering all of Java's
ability to work well on platforms that have more than a rudimentary notion
of files. Ultimately, java.io.File ends up being crippled on EVERY
platform, but crippled in different ways on different platforms. This is
not a good design strategy.

Efficiency may become relevant if you have a bunch of slow shares, or slow
CDs, or slow connections, or slow media.


>As for catching signals -- perhaps you mean monitoring the file system for
>changes? I'm familiar with signals, but no I'm not catching them for any
>reason.

All I meant was catching (or ignoring) Unix signals that might cause an
unexpected termination. It wasn't previously clear where this program was
running: client or server.


In general, it sounds like you have a workable approach to turning names
into resources. If the transformed names stored in the database aren't
universal and indefinitely usable into the future, though, then you'll be
revisiting this problem (resolve name N into resource R) in the future.

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.