@ProviderType public interface ObserverConfiguration
ObserverConfiguration
are comparable using the
Object.equals(Object)
method. Two configurations are equal, if they
have exactly the same parameters.
A resource provider implementation observation must support sending remove
events as explained in ResourceChangeListener
.
If an observer configuration contains a pattern or is limited to a sub tree,
removal events not matching the pattern or removing events of parents of
that sub tree must be provided to the listener nevertheless - if the
listener is interested in resource remove events.Modifier and Type | Method and Description |
---|---|
@NotNull java.util.Set<ResourceChange.ChangeType> |
getChangeTypes()
The set of types listeners are interested in.
|
@NotNull PathSet |
getExcludedPaths()
The set of excluded paths.
|
@NotNull PathSet |
getPaths()
The set of paths this listener is interested in.
|
@NotNull java.util.Set<java.lang.String> |
getPropertyNamesHint()
Set containing the set of property names which
serves as an optional hint for the underlying to
only report property changes enlisted, ie the
underlying might ignore this.
|
boolean |
includeExternal()
true if a listener is interested in external events. |
boolean |
matches(java.lang.String path)
Checks whether a path matches one of the paths of this configuration
but is not in the excluded paths set.
|
boolean includeExternal()
true
if a listener is interested in external events.true
if a listener is interested in external events.@NotNull @NotNull PathSet getPaths()
@NotNull @NotNull PathSet getExcludedPaths()
getPaths()
@NotNull @NotNull java.util.Set<ResourceChange.ChangeType> getChangeTypes()
@NotNull @NotNull java.util.Set<java.lang.String> getPropertyNamesHint()
null
boolean matches(java.lang.String path)
path
- The path to checktrue
if the path matches the configuration.Copyright © 2010 - 2020 Adobe. All Rights Reserved