Function TypeBasedContainer.get

Get an object that is associated with identity.

Object get (
  string identity
);

Get an object that is associated with identity. If no object associated by identity in decorated container is found, a search for a solution in list of candidates is done, and if found, first candidate is used as substitution for serving the requested object.

Parameters

NameDescription
identity object identity in decorated.

Throws

NotFoundException in case if no object was found.

Returns

Object if it is available.