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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet of paths which are "hidden" by other resource providers.Get the observation reporter for this instance.voidupdate(ObservationReporter observationReporter, PathSet excludedPaths)
-
Constructor Details
-
ProviderContextImpl
public ProviderContextImpl()
-
-
Method Details
-
update
-
getObservationReporter
Description copied from interface:ProviderContextGet 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:
getObservationReporterin interfaceProviderContext- Returns:
- The observation reporter.
-
getExcludedPaths
Description copied from interface:ProviderContextSet 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:
getExcludedPathsin interfaceProviderContext- Returns:
- A set of paths. The set might be empty
-