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 forCommonAttribute
index 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 void
activate()
protected void
clearCacheItems()
Clears cache itemsvoid
compute(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Computes part of the given object derived data.protected Collection<org.eclipse.xtext.resource.IEObjectDescription>
computeCacheItems(IBmObject target)
ComputesCommonAttribute
index elements by context objectvoid
deactivate()
Collection<org.eclipse.xtext.resource.IEObjectDescription>
getCommonAttributeCacheItems(IBmObject target)
GetsCommonAttribute
index 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
compute, getSupportedPartId, isSeparateContainmentContextComputation
-
-
-
-
Method Detail
-
compute
public void compute(IBmObject bmObject, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
Description copied from interface:IDerivedDataPartComputer
Computes part of the given object derived data.- Specified by:
compute
in interfaceIDerivedDataPartComputer
- Parameters:
bmObject
- Context of the derived data computing. Cannot benull
progressMonitor
- Controls the computation of the derived data. Cannot benull
-
getCommonAttributeCacheItems
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getCommonAttributeCacheItems(IBmObject target)
Description copied from interface:ICommonAttributeCacheProvider
GetsCommonAttribute
index elements- Specified by:
getCommonAttributeCacheItems
in interfaceICommonAttributeCacheProvider
- Parameters:
target
- contextEObject
for getting index elements, can't benull - Returns:
CommonAttribute
index elements, nevernull
-
activate
public void activate()
- Specified by:
activate
in interfaceIManagedService
-
deactivate
public void deactivate()
- Specified by:
deactivate
in interfaceIManagedService
-
clearCacheItems
protected void clearCacheItems()
Clears cache items
-
computeCacheItems
protected Collection<org.eclipse.xtext.resource.IEObjectDescription> computeCacheItems(IBmObject target)
ComputesCommonAttribute
index elements by context object- Parameters:
target
-- Returns:
-
-