Class AbstractBmRefresher
java.lang.Object
com._1c.g5.aef2.standard.definitions.refresher.AbstractRefresher
com._1c.g5.v8.dt.aef2.bm.refresher.AbstractBmRefresher
- All Implemented Interfaces:
IRefresher
The BM refresher that triggers the refresh on BM change event.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractBmRefresher
(boolean forced, Object... objects) Creates a new refresher instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the refresher instance.void
initialize
(IManagingComponent<?> component) Initializes the refresher by theIManagingComponent
.protected abstract boolean
needRefresh
(IBmModel model, IBmObject[] objects, IBmLongMap<BmChangeEvent> changeEvents) Returnstrue
if refresh is needed for the specifiedevent
.Methods inherited from class com._1c.g5.aef2.standard.definitions.refresher.AbstractRefresher
getComponent, refresh
-
Constructor Details
-
AbstractBmRefresher
Creates a new refresher instance.- Parameters:
forced
- the flag indicating whether use forced refresh or not.objects
- the objects, cannot benull
.
-
-
Method Details
-
initialize
Description copied from interface:IRefresher
Initializes the refresher by theIManagingComponent
.- Specified by:
initialize
in interfaceIRefresher
- Overrides:
initialize
in classAbstractRefresher
- Parameters:
component
- the component, cannot benull
.
-
dispose
public void dispose()Description copied from interface:IRefresher
Disposes the refresher instance.- Specified by:
dispose
in interfaceIRefresher
- Overrides:
dispose
in classAbstractRefresher
-
needRefresh
protected abstract boolean needRefresh(IBmModel model, IBmObject[] objects, IBmLongMap<BmChangeEvent> changeEvents) Returnstrue
if refresh is needed for the specifiedevent
.- Parameters:
model
- the BM model, cannot benull
.objects
- the BM objects the refresher is creted for, cannot benull
.changeEvents
- the BM change events, cannot benull
.- Returns:
true
if refresh is needed for the specifiedevent
.
-