GenericConvertorContainer

An implementation of ConvertorContainer.

Constructors

this
this()

Default constructor for GenericConvertorContainer!(FromType, DefaultConvertorFactory)

Members

Functions

get
Object get(string key)

Get a component that is associated with key.

getFactories
InputRange!(Tuple!(Factory!(Object), string)) getFactories()

Get all factories available in container.

getFactory
ObjectFactory getFactory(string identity)

Get factory for constructed component identified by identity.

has
bool has(string key)

Check if a component is present in Locator by key id.

instantiate
GenericConvertorContainer!(FromType, DefaultConvertorFactory) instantiate()

Sets up the internal state of container.

remove
GenericConvertorContainer!(FromType, DefaultConvertorFactory) remove(string key)

Remove an convertor factory from GenericConvertorContainer with identity.

set
GenericConvertorContainer!(FromType, DefaultConvertorFactory) set(ConvertorFactory!(FromType, Object) factory, string key)

Save a convertor factory in GenericConvertorContainer by key identity.

Properties

locator
Locator!(FromType, string) locator [@property setter]

Set locator

locator
Locator!(FromType, string) locator [@property getter]

Get locator of FromType data

Parameters

FromType

original form of data based on which components are constructed.

DefaultConvertorFactory

convertor factory that is used by default in this container (used for some generic stuff)

Meta