Factory

Interface for objects able to create some instance of type T.

Intent of this interface is to provide a single entry for objects, able to instantiate something.

@safe
interface Factory : LocatorAware!(), AllocatorAware!()(
T
) {}

Members

Functions

destruct
void destruct(T component)

Destructs a component of type T.

factory
T factory()

Instantiates component of type T.

Properties

type
TypeInfo type [@property getter]

Get the type info of T that is created.

Meta