Function alternate

Reference that defaults to alternate component in case that original one is not fetchable from container

AlternateReference alternate (
  RuntimeReference original,
  RuntimeReference alternate
);

Parameters

NameDescription
original original reference to a component that is attempted to be fetched.
alternate reference to alternate component that is meant to substitute original component in case of some failure.

Throws

Returns

AlternateReference