Package org.eclipse.emf.cdo.util
Class CDOCrossReferenceAdapter
java.lang.Object
org.eclipse.emf.ecore.util.ECrossReferenceAdapter
org.eclipse.emf.cdo.util.CDOCrossReferenceAdapter
- All Implemented Interfaces:
Adapter
,Adapter.Internal
An
ECrossReferenceAdapter
that does instanceof checks of Notifier
instances
in the order Resource
, EObject
, and ResourceSet
.
Background:
For performance reasons (assuming that there are typically more EObject
instances than Resource
instances)
EMF does instanceof checks of Notifier
instances in the order EObject
, Resource
, and ResourceSet
.
That is problematic with CDOResources because they implement both Resource
and EObject
.
- Since:
- 4.6
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
AnInverseCrossReferencer
with anCDOCrossReferenceAdapter.CDOInverseCrossReferencer.addProxy(EObject, EObject)
method that is visible toCDOCrossReferenceAdapter
.Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
ECrossReferenceAdapter.InverseCrossReferencer
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
Adapter.Internal
-
Field Summary
Fields inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
inverseCrossReferencer, iterating, settingTargets, unloadedEObjects, unloadedResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
selfAdapt
(Notification notification) void
void
unsetTarget
(Notifier target) Methods inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
addAdapter, dump, getCrossReferenceAdapter, getInverseReferences, getInverseReferences, getInverseReferences, getNonNavigableInverseReferences, getNonNavigableInverseReferences, getTarget, handleContainment, handleCrossReference, isAdapterForType, isIncluded, notifyChanged, removeAdapter, resolve, resolveAll, resolveProxy, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, useRecursion
-
Constructor Details
-
CDOCrossReferenceAdapter
public CDOCrossReferenceAdapter()
-
-
Method Details
-
setTarget
- Specified by:
setTarget
in interfaceAdapter
- Overrides:
setTarget
in classECrossReferenceAdapter
-
unsetTarget
- Specified by:
unsetTarget
in interfaceAdapter.Internal
- Overrides:
unsetTarget
in classECrossReferenceAdapter
-
selfAdapt
- Overrides:
selfAdapt
in classECrossReferenceAdapter
-
createInverseCrossReferencer
- Overrides:
createInverseCrossReferencer
in classECrossReferenceAdapter
-
getInverseCrossReferencer
-