public interface ObservationReporter
ResourceProvider
must use an observation reporter
to report changes to resources. The resource provider gets
an instance of this reporter through the ProviderContext
.Modifier and Type | Method and Description |
---|---|
java.util.List<ObserverConfiguration> |
getObserverConfigurations()
Get the list of observer configurations affecting the provider this
reporter is bound to.
|
void |
reportChanges(java.lang.Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
void |
reportChanges(ObserverConfiguration config,
java.lang.Iterable<ResourceChange> changes,
boolean distribute)
A resource provider can inform about a list of changes.
|
java.util.List<ObserverConfiguration> getObserverConfigurations()
void reportChanges(java.lang.Iterable<ResourceChange> changes, boolean distribute)
reportChanges(ObserverConfiguration, Iterable, boolean)
must be used instead.changes
- The list of changes.distribute
- Whether the changes should be distributed to other instances.void reportChanges(ObserverConfiguration config, java.lang.Iterable<ResourceChange> changes, boolean distribute)
reportChanges(Iterable, boolean)
must be used to
report changes across all observer configurations. However, if the implementation is
using a mechanism per observation configuration this method must be used instead.config
- The configuration the change belongs tochanges
- The list of changes.distribute
- Whether the changes should be distributed to other instances."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"