Class ProviderContextImpl
java.lang.Object
org.apache.sling.resourceresolver.impl.providers.ProviderContextImpl
- All Implemented Interfaces:
ProviderContext
Provider context implementation
-
Field Summary
Fields inherited from interface org.apache.sling.spi.resource.provider.ProviderContext
EXCLUDED_PATHS_CHANGED, OBSERVATION_LISTENER_CHANGED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet of paths which are "hidden" by other resource providers.Get the observation reporter for this instance.void
update
(ObservationReporter observationReporter, PathSet excludedPaths)
-
Constructor Details
-
ProviderContextImpl
public ProviderContextImpl()
-
-
Method Details
-
update
-
getObservationReporter
Description copied from interface:ProviderContext
Get the observation reporter for this instance. If anything related to observation configuration changes,ResourceProvider.update(long)
is called. From that point on this method needs to be called to get the updated/new observation reporter. The instance previously returned (before update was called) becomes invalid and must not be used anymore.- Specified by:
getObservationReporter
in interfaceProviderContext
- Returns:
- The observation reporter.
-
getExcludedPaths
Description copied from interface:ProviderContext
Set of paths which are "hidden" by other resource providers. If anything related to observation configuration changes,ResourceProvider.update(long)
is called. From that point on this method will return a new path set with the updated/changed exclude paths.- Specified by:
getExcludedPaths
in interfaceProviderContext
- Returns:
- A set of paths. The set might be empty
-