alternate

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

  1. AlternateReference alternate(RuntimeReference original, RuntimeReference alternate)
  2. class AlternateReference

Parameters

original RuntimeReference

original reference to a component that is attempted to be fetched.

alternate RuntimeReference

reference to alternate component that is meant to substitute original component in case of some failure.

Return Value

AlternateReference

Meta