dxx.util.injector

A wrapper that creates injection tools for your project. The settings are passed as template parameters to the class LocalInjector which you instantiate using the static method newInjector. Only one instance of LocalInjector is created; subsequent invocations of newInjector will return the existing instance, and the parameters will be ignored. The parameters to newInjector are parsed: Class parameters are passed to the wrapped container using the "scan" method. Tuple parameters are parsed and converted into properties which are loaded at runtime from "dxx.json". TODO allow for the property filenames to be overridden.

Members

Aliases

autowired
alias autowired = aermicioi.aedi.autowired
Undocumented in source.
component
alias component = aermicioi.aedi.component
Undocumented in source.
localInjector
alias localInjector = InjectionContainer.getInstance
Undocumented in source.

Classes

InjectionContainer
class InjectionContainer
Undocumented in source.
LocalInjector
class LocalInjector(C...)
Undocumented in source.

Static functions

getInjectorProperty
T getInjectorProperty(string k, InjectionContainer i)
Undocumented in source. Be warned that the author may not have intended to support it.
newInjector
auto newInjector(AggregateContainer c)
Undocumented in source. Be warned that the author may not have intended to support it.
resolveInjector
auto resolveInjector(Arg arg, InjectionContainer i)
Undocumented in source. Be warned that the author may not have intended to support it.
setInjectorProperty
void setInjectorProperty(string k, T t, InjectionContainer i)
Undocumented in source. Be warned that the author may not have intended to support it.
terminateInjector
void terminateInjector()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta