|Re: [CDO] CDOStaleReferencePolicy.PROXY [message #901348 is a reply to message #901284]
||Sat, 11 August 2012 05:29
| Eike Stepper
Registered: July 2009
Am 10.08.2012 17:46, schrieb Esteban Dugueperoux:|
> A little question about CDOStaleReferencePolicy.PROXY whose role, if I understand well, is to create unresolvable EMF
> proxy for detached CDOObject
No, EMF proxies are not supported by CDO because the reference resolution mechansim is totally different. By default
(i.e. with CDOStaleReferencePolicy.EXCEPTION) a CDOObject throws an exception on eGet(reference, i) if the reference
target does not exist.
> but the java proxy created return false to the eIsProxy() method. It is here my misunderstanding of
CDOStaleReferencePolicy.PROXY creates a Java dynamic proxy object to delay the throwing of an exception until the
returned proxy object is accessed. The proxy only supports the most fundamental EObject functionality, in particular
object identity so that higher level frameworks have a chance to remove/unset the stale reference without risking to run
into unexpected/unchecked exceptions.
> why a java proxy wouldn't simulates a EMF proxy?
Why should it, without a chance of being resolved properly?
Powered by FUDForum
. Page generated in 0.05744 seconds