Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF/CDO] ResourceSet.getURIConverter().exists() does not return correct value because of no appropr
[EMF/CDO] ResourceSet.getURIConverter().exists() does not return correct value because of no appropr [message #1107502] Thu, 12 September 2013 13:54 Go to next message
Eclipse UserFriend
Hi Ed and Eike,

In our use case of CDO, with connection aware URI, and also with our use
of other type of Resource, i.e. our in house InMemoryResource, these
specific resources are created by
ResourceSet.getResource()/createResource() using the Registry of
Resource.Factory.
Like that for example when calling ResourceSet.getResource() with a CDO
connection aware URI, a CDOResourceImpl is created through the
CDOResourceFactoryImpl.

My issue is with the use of ResourceSet.getURIConverter().exists()
method to check if a Resource exists, when starting from a new
ResourceSet without associated Resource, this method works only for URI
managed by default URIHandler as defined in URIHandler.DEFAULT_HANDLERS.
In the case of CDO this method works only when the ResourceSet used
contains already a CDOResourceImpl as when this last is added, the
CDOURIHandler is added to the list of URIHandler of the URIConverter of
the ResourceSet.

Then my question is do you know a mean to register automatically
URIHandler as it is done with ResourceFactory, i.e. register
CDOURIHandler to a registry as it is done for CDOResourceFactoryImpl?

Best Regards.
Re: [EMF/CDO] ResourceSet.getURIConverter().exists() does not return correct value because of no app [message #1107551 is a reply to message #1107502] Thu, 12 September 2013 15:29 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 12.09.2013 15:54, schrieb Esteban DUGUEPEROUX:
> Hi Ed and Eike,
>
> In our use case of CDO, with connection aware URI, and also with our use of other type of Resource, i.e. our in house
> InMemoryResource, these specific resources are created by ResourceSet.getResource()/createResource() using the
> Registry of Resource.Factory.
> Like that for example when calling ResourceSet.getResource() with a CDO connection aware URI, a CDOResourceImpl is
> created through the CDOResourceFactoryImpl.
>
> My issue is with the use of ResourceSet.getURIConverter().exists() method to check if a Resource exists, when starting
> from a new ResourceSet without associated Resource, this method works only for URI managed by default URIHandler as
> defined in URIHandler.DEFAULT_HANDLERS.
> In the case of CDO this method works only when the ResourceSet used contains already a CDOResourceImpl as when this
> last is added, the CDOURIHandler is added to the list of URIHandler of the URIConverter of the ResourceSet.
>
> Then my question is do you know a mean to register automatically URIHandler as it is done with ResourceFactory, i.e.
> register CDOURIHandler to a registry as it is done for CDOResourceFactoryImpl?
AFAIK there's no way in EMF to globally register URIHandlers.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


Previous Topic:Saved XMI is not valid by generated XSD problem.
Next Topic:[cdo] does it support following feature
Goto Forum:
  


Current Time: Thu Apr 18 00:06:03 GMT 2024

Powered by FUDForum. Page generated in 0.02400 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top