Function ComponentStoringPolicyImpl.store

Store component factory into storage.

void store(T) (
  Factory!Object factory,
  Locator!() locator,
  Storage!(Factory!Object,string) storage
);

Store component factory into storage. The storage where component is stored on presence of @contained annotation on T, will be extracted from locator, otherwise storage passed as argument is used. The identity of component by default is it's type FQN, but is overriden by @qualifier annotation.

Parameters

NameDescription
factory component factory to be stored
locator locator that is used to fetch storage in case of @contained annotation
storage storage were component is stored when no @contained annotation is provided