DocumentContainer

An implementation of Container interface from aedi IoC providing access to components that are stored into a document.

An implementation of Container interface from aedi IoC providing access to components that are stored into a document where a document could be anything that is accessable by a PropertyAccessor implementation. Components stored in document will be converted according to convertor associated to property path from document.

Constructors

this
this(DocumentType document)

Constructor for a container for document.

Members

Functions

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

convertsFrom
bool convertsFrom(TypeInfo from)

Check whether convertor is able to convert from.

convertsFrom
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)

Check whether convertor is able to convert to.

convertsTo
bool convertsTo(Object to)

Check whether convertor is able to convert to.

destruct
void destruct(Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

get
Object get(string identity)

Get a component that is associated with key.

has
bool has(string identity)

Check if an element is present in Locator by key id.

instantiate
Container instantiate()

Sets up the internal state of container.

remove
typeof(this) remove(string identity)

Remove an element from Storage with identity.

set
typeof(this) set(Convertor element, string identity)

Save an element in Storage by key identity.

terminate
Container terminate()

Destruct all managed components.

Mixins

__anonymous
mixin AllocatorAwareMixin!(typeof(this))
Undocumented in source.

Properties

accessor
PropertyAccessor!(DocumentType, FieldType) accessor [@property setter]

Set accessor

accessor
inout(PropertyAccessor!(DocumentType, FieldType)) accessor [@property getter]

Get accessor

document
DocumentType document [@property setter]

Set document

document
inout(DocumentType) document [@property getter]

Get document

from
TypeInfo from [@property getter]

Get the type info of component that convertor can convert from.

guesser
TypeGuesser!FieldType guesser [@property setter]

Set guesser

guesser
inout(TypeGuesser!FieldType) guesser [@property getter]

Get guesser

to
TypeInfo to [@property getter]

Get the type info of component that convertor is able to convert to.

Inherited Members

From Convertor

from
TypeInfo from [@property getter]

Get the type info of component that convertor can convert from.

to
TypeInfo to [@property getter]

Get the type info of component that convertor is able to convert to.

convertsFrom
bool convertsFrom(TypeInfo from)

Check whether convertor is able to convert from.

convertsFrom
bool convertsFrom(Object from)

Check whether convertor is able to convert from.

convertsTo
bool convertsTo(TypeInfo to)

Check whether convertor is able to convert to.

convertsTo
bool convertsTo(Object to)

Check whether convertor is able to convert to.

convert
Object convert(Object from, TypeInfo to, RCIAllocator allocator)

Convert from component to component.

destruct
void destruct(Object converted, RCIAllocator allocator)

Destroy component created using this convertor.

Meta