PlanCatalog
@ThreadSafe
public final class PlanCatalog- Inheritance
ObjectPlanCatalog
Looks up immutable build plans by name.
var catalog = new PlanCatalog(Map.of("app", BuildPlan.defaults("example.Main")));
var plan = catalog.find("app");See also
Fields1
Constructors1
Methods3
@HotPath
public @Nullable BuildPlan find(String name)
Has an API note
@HotPath
public @Nullable BuildPlan find(String name)Looks up the plan associated with a name.
Parameters
namenon-null (implied) by @NullMarked on package example.runtime- the catalog key
Returns
- nullable
- the matching plan, or null on a miss
API note
Use names() to list the available keys.
Implementation requirements
Lookup does not modify the catalog.
Implementation note
Keys are compared using String.equals(Object).
@NullUnmarked
@Deprecated(since = "1.0", forRemoval = true)
public BuildPlan lookup(String name)
for removal
@NullUnmarked
@Deprecated(since = "1.0", forRemoval = true)
public BuildPlan lookup(String name)Deprecated for removal since 1.0
Use find(String) for an explicit nullness contract.
Returns a plan through the legacy lookup contract.
Parameters
name- the catalog key
Returns
- the lookup result