public final class CellProvider extends Object
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
Cell |
getCellByCanonicalCellName(CanonicalCellName canonicalCellName)
Get cell object by canonicall cell name
|
Cell |
getCellByPath(AbsPath path) |
Cell |
getCellByPath(Path path) |
com.google.common.collect.ImmutableMap<AbsPath,Cell> |
getLoadedCells() |
Cells |
getRootCell() |
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)
The indirection for passing in CellProvider allows cells to reference the current CellProvider object.
public Cell getCellByCanonicalCellName(CanonicalCellName canonicalCellName)
public Cells getRootCell()