ApplicationContainer

Application container

A default container that provides singleton, and prototype containers as well as a storage for already instantiated component. It should be sufficient for usages, when no specific hierarchy of storages is required.

@safe
class ApplicationContainer : AggregateContainer {}

Constructors

this
this()

* Default constructor for ApplicationContainer

Inherited Members

From AggregateContainer

set
AggregateContainer set(Container container, string identity)

Set a container into aggregate container

remove
AggregateContainer remove(string identity)

Remove a container from aggregate container.

get
Object get(string identity)

Get a container, or an object that is contained by managed containers.

has
bool has(string identity)

Check if an object is present in one of containers, or it is a container itself.

instantiate
AggregateContainer instantiate()

Finalize all unfinished initialization work in containers.

terminate
AggregateContainer terminate()

Destruct all managed components.

getLocator
Locator!(Object, string) getLocator(string identity)

Get a specific container.

getLocators
InputRange!(Pair!(Locator!(), string)) getLocators()

Get all containers in aggregate container

hasLocator
bool hasLocator(string identity)

Check if aggregate container contains a specific container.

Meta