Class CellProvider


  • public final class CellProvider
    extends Object
    • Constructor Detail

      • CellProvider

        public CellProvider​(NewCellPathResolver newCellPathResolver,
                            java.util.function.Function<CellProvider,​com.google.common.cache.CacheLoader<AbsPath,​Cell>> cellCacheLoader,
                            @Nullable
                            java.util.function.Function<CellProvider,​Cell> rootCellLoader)
        Create a cell provider with a specific cell loader, and optionally a special factory function for the root cell.

        The indirection for passing in CellProvider allows cells to reference the current CellProvider object.

    • Method Detail

      • getCellByPath

        public Cell getCellByPath​(Path path)
      • getCellByPath

        public Cell getCellByPath​(AbsPath path)
      • getCellByCanonicalCellName

        public Cell getCellByCanonicalCellName​(CanonicalCellName canonicalCellName)
        Get cell object by canonicall cell name
      • getRootCell

        public Cells getRootCell()
      • getLoadedCells

        public com.google.common.collect.ImmutableMap<AbsPath,​Cell> getLoadedCells()