Class ProviderContextImpl

java.lang.Object
org.apache.sling.resourceresolver.impl.providers.ProviderContextImpl
All Implemented Interfaces:
ProviderContext

public class ProviderContextImpl extends Object implements ProviderContext
Provider context implementation
  • Constructor Details

    • ProviderContextImpl

      public ProviderContextImpl()
  • Method Details

    • update

      public void update(ObservationReporter observationReporter, PathSet excludedPaths)
    • getObservationReporter

      public ObservationReporter 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 interface ProviderContext
      Returns:
      The observation reporter.
    • getExcludedPaths

      public PathSet 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 interface ProviderContext
      Returns:
      A set of paths. The set might be empty