Re: Request for ClassPath API extension.

Svatopluk Dedic <[email protected]> Wed, 25 Jun 2003 11:16:45 +0200
Newsgroups gmane.comp.java.netbeans.modules.projects.devel
Message-ID <[email protected]>
Tomas Zezula wrote:
> After obtaining new usecases and requirements for ClassPath API, I have 
> decided to
> extend the functionality of the PathResource class by adding the 
> getHandle () operation into it.
> The operation should return null for transient PathResources or 
> PathRsource.Handle
> for persistent ones.
> 
Q: what will be the Handle contract ? Do you suppose some PathResource 
get() operation on the handle ?
For the client to just identify a PathResource coming into its face from 
a Classpath, it is sufficient (but maybe not efficient) to do 
stored_deserialized_handle.equals(acquiredResource.getHandle()).

If there is PathResource get(), then the client is actually able to 
reach that PatResource instance, which may be a little tough :) to 
implement.

-Svata