|
|
|
Re: Sharing a Resource across multiple ResourceSets [message #668349 is a reply to message #668339] |
Thu, 05 May 2011 09:42 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Cristian,
That's right. Often you'd delegate the call to ResourceSet.getResource
on some resource set that contains all the shared resources...
Cristian wrote:
> Thanks Ed.
>
> You mean delegatedGetResource(URI uri, boolean loadOnDemand)?
>
> So if I have an implementation of the above method that does for example:
>
>
> // if uri == sharedResourceUri
> return sharedResource;
>
>
> That means that when I load a new resource that references
> sharedResource, it won't be loaded again, and the instance that I
> provide above will be used, right?
>
> Best regards,
> Cristian.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02988 seconds