Package com._1c.g5.v8.derived.context
Class SelfRemovalContextCollector
- java.lang.Object
-
- com._1c.g5.v8.derived.context.RemovalContextCollectorAdapter
-
- com._1c.g5.v8.derived.context.SelfRemovalContextCollector
-
- All Implemented Interfaces:
IRemovalContextCollector
public class SelfRemovalContextCollector extends RemovalContextCollectorAdapter
Context removal collector that collects the object being removed at the moment.
-
-
Constructor Summary
Constructors Constructor Description SelfRemovalContextCollector(String segmentId, boolean supportsSync, boolean supportsAsync, org.eclipse.emf.ecore.EClass supportedType)
Creates an instance of the collector with specified paramters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
collectContextOnObjectRemoval(long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, IContextCollectingSession contextSession, IBmModel model)
This method allows to gather additional scope for after-removal clearings.void
collectContextOnObjectRemoval(IBmObject bmObject, org.eclipse.emf.common.util.URI uri, IContextCollectingSession contextSession, IBmModel model)
This method allows to gather additional scope for after-removal clearings.-
Methods inherited from class com._1c.g5.v8.derived.context.RemovalContextCollectorAdapter
getSupportedType, supportsAsync, supportsSync
-
-
-
-
Constructor Detail
-
SelfRemovalContextCollector
public SelfRemovalContextCollector(String segmentId, boolean supportsSync, boolean supportsAsync, org.eclipse.emf.ecore.EClass supportedType)
Creates an instance of the collector with specified paramters.- Parameters:
segmentId
- The identifier of the DD segment, cannot benull
supportsSync
- True if the collector supports DD context gathering during sync. DD gatherin phase.supportsAsync
- True if the collector supports DD context gathering during async. DD gatherin phase.supportedType
- The type of the object served by this collector.
-
-
Method Detail
-
collectContextOnObjectRemoval
public void collectContextOnObjectRemoval(IBmObject bmObject, org.eclipse.emf.common.util.URI uri, IContextCollectingSession contextSession, IBmModel model)
Description copied from interface:IRemovalContextCollector
This method allows to gather additional scope for after-removal clearings.- Parameters:
bmObject
- BM-detached object instance received in the process of the removal.uri
- the URI the object had prior to removal. If the object is top, non-null
value is supplied, otherwise not defined.contextSession
- Session of the context collection being used to access object contexts.model
- The BM model.
-
collectContextOnObjectRemoval
public void collectContextOnObjectRemoval(long bmObjectId, org.eclipse.emf.ecore.EClass objectEClass, IContextCollectingSession contextSession, IBmModel model)
Description copied from interface:IRemovalContextCollector
This method allows to gather additional scope for after-removal clearings.- Parameters:
bmObjectId
- The identifier of the object to register the removal for.objectEClass
- TheEClass
of the object to register the removal for. Cannot benull
contextSession
- Session of the context collection being used to access object contexts.model
- The BM model.
-
-