registerInto

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

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

Parameters

Type

the type of object registered in storage

locator R

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