Package com._1c.g5.v8.dt.md
Class CommonAttributeCacheProvider
- java.lang.Object
-
- com._1c.g5.v8.derived.computer.AbstractDerivedDataPartComputer
-
- com._1c.g5.v8.dt.md.CommonAttributeCacheProvider
-
- All Implemented Interfaces:
IDerivedDataPartComputer,ICommonAttributeCacheProvider,IManagedService
@LifecycleService(name="COMMON_ATTRIBUTE_CACHE_PROVIDER") public class CommonAttributeCacheProvider extends AbstractDerivedDataPartComputer implements ICommonAttributeCacheProvider
Special cache forCommonAttributeindex elements. Contains index elements sorted in lexicographical order by name
-
-
Constructor Summary
Constructors Constructor Description CommonAttributeCacheProvider()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()protected voidclearCacheItems()Clears cache itemsvoidcompute(IBmObject bmObject, IPartBasedObjectContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor)Computes part of the given object derived data.protected Collection<org.eclipse.xtext.resource.IEObjectDescription>computeCacheItems(IBmObject target)ComputesCommonAttributeindex elements by context objectvoiddeactivate()Collection<org.eclipse.xtext.resource.IEObjectDescription>getCommonAttributeCacheItems(IBmObject target)GetsCommonAttributeindex elements-
Methods inherited from class com._1c.g5.v8.derived.computer.AbstractDerivedDataPartComputer
getSupportedPartId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.derived.computer.IDerivedDataPartComputer
computeForRemovedObject, getSupportedPartId, isSeparateContainmentContextComputation
-
-
-
-
Method Detail
-
compute
public void compute(IBmObject bmObject, IPartBasedObjectContext context, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Description copied from interface:IDerivedDataPartComputerComputes part of the given object derived data.- Specified by:
computein interfaceIDerivedDataPartComputer- Parameters:
bmObject- Context of the derived data computing. Cannot benullcontext- The context of the DD computation. May not benullprogressMonitor- Controls the computation of the derived data. Cannot benull
-
getCommonAttributeCacheItems
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getCommonAttributeCacheItems(IBmObject target)
Description copied from interface:ICommonAttributeCacheProviderGetsCommonAttributeindex elements- Specified by:
getCommonAttributeCacheItemsin interfaceICommonAttributeCacheProvider- Parameters:
target- contextEObjectfor getting index elements, can't benull - Returns:
CommonAttributeindex elements, nevernull
-
activate
public void activate()
- Specified by:
activatein interfaceIManagedService
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceIManagedService
-
clearCacheItems
protected void clearCacheItems()
Clears cache items
-
computeCacheItems
protected Collection<org.eclipse.xtext.resource.IEObjectDescription> computeCacheItems(IBmObject target)
ComputesCommonAttributeindex elements by context object- Parameters:
target-- Returns:
-
-