Package com.facebook.buck.core.cell
Class CellProvider
- java.lang.Object
-
- com.facebook.buck.core.cell.CellProvider
-
public final class CellProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description CellProvider(NewCellPathResolver newCellPathResolver, java.util.function.Function<CellProvider,com.google.common.cache.CacheLoader<AbsPath,Cell>> cellCacheLoader, 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cell
getCellByCanonicalCellName(CanonicalCellName canonicalCellName)
Get cell object by canonicall cell nameCell
getCellByPath(AbsPath path)
Cell
getCellByPath(Path path)
com.google.common.collect.ImmutableMap<AbsPath,Cell>
getLoadedCells()
Cells
getRootCell()
-
-
-
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
-
getCellByCanonicalCellName
public Cell getCellByCanonicalCellName(CanonicalCellName canonicalCellName)
Get cell object by canonicall cell name
-
getRootCell
public Cells getRootCell()
-
-