Class AlternateReference

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

class AlternateReference
  : RuntimeReference ;

Methods

NameDescription
alternative Set alternative
alternative Get alternative
get Resolve the reference, to referenced component.
original Set original
original Get original

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