registerInto

Register an object into a storage by storageId located in storageLocator.

  1. auto registerInto(R storageLocator, Locator!() locator, string storageId)
    registerInto
    (
    Type
    R : Locator!()
    )
    (,,
    string storageId = "singleton"
    )
    if (
    !is(R : Storage!(ObjectFactory, string))
    )
  2. auto registerInto(R locator, string storageId)
  3. auto registerInto(R locator, Type data, string storageId)

Parameters

Type

the type of object registered in storage

storageLocator R

locator containing the storage where to store object.

locator Locator!()

locator used to fetch dependencies for registered object

storageId string

the id of storage where object is stored.

Return Value

Type: auto

storageLocator for further configuration

Throws

NotFoundException when storage with storageId is not found.

Meta