ComponentStoringPolicy.store

Store component factory into 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.

struct ComponentStoringPolicy(IdentityResolverPolicy, StorageResolvingPolicy, AliasingPolicyImpl)
static
store
()
(,,
Storage!(Factory!Object, string) storage
)

Parameters

factory Factory!Object

component factory to be stored

locator Locator!()

locator that is used to fetch storage in case of @contained annotation

storage Storage!(Factory!Object, string)

storage were component is stored when no @contained annotation is provided

Meta