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
Nested ClassesModifier and TypeClassDescriptionprotected classAnInverseCrossReferencerwith anCDOCrossReferenceAdapter.CDOInverseCrossReferencer.addProxy(EObject, EObject)method that is visible toCDOCrossReferenceAdapter.Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.ECrossReferenceAdapter
ECrossReferenceAdapter.InverseCrossReferencerNested 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidselfAdapt(Notification notification) voidvoidunsetTarget(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:
setTargetin interfaceAdapter- Overrides:
setTargetin classECrossReferenceAdapter
-
unsetTarget
- Specified by:
unsetTargetin interfaceAdapter.Internal- Overrides:
unsetTargetin classECrossReferenceAdapter
-
selfAdapt
- Overrides:
selfAdaptin classECrossReferenceAdapter
-
createInverseCrossReferencer
- Overrides:
createInverseCrossReferencerin classECrossReferenceAdapter
-
getInverseCrossReferencer
-