Interface PathManager

All Known Implementing Classes:
PathManagerService

public interface PathManager
The client interface for the PathManagerService
Author:
Kabir Khan
  • Field Details

  • Method Details

    • resolveRelativePathEntry

      String resolveRelativePathEntry(String path, String relativeTo)
      Resolves a relative path
      Parameters:
      path - an absolute path if relativeTo is null, the relative path to relativeTo otherwise
      relativeTo - the name of the path this is relative to, may be null
      Returns:
      the resolved path
      Throws:
      IllegalStateException - if there is no path registered under relativeTo
    • getPathEntry

      PathEntry getPathEntry(String name)
      Gets a path entry
      Parameters:
      name - the name of the path
      Returns:
      the path
      Throws:
      IllegalStateException - if there is no path registered under path
    • registerCallback

      PathManager.Callback.Handle registerCallback(String name, PathManager.Callback callback, PathManager.Event... events)
      Registers a callback for when a path is added/changed/removed
      Parameters:
      name - the name of the path
      callback - the callback instance that will be called when one of the events occur
      events - the events we are interested in
      Returns:
      a handle to unregister the callback