aermicioi.aedi.configurer.annotation.component_scan

Provides annotation based configuration and registration for components.

Members

Functions

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator, string id)

Register an object into storage using annotations provided in it.

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator)
auto componentScan(ConfigurableContainer storage)

Register an object into storage by it's type FQN using annotations provided in it.

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator)

Register an object into storage by I's interface FQN that it implements using annotations provided in it.

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator)

Register a set of objects by it's type, or implemented interface into a storage.

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator)

Scan a module and register all public objects that are annotated with @component annotation.

componentScan
auto componentScan(Storage!(ObjectFactory, string) storage, Locator!() locator)

Scan a set of modules and register all public objects that are annotated with @component annotation.

componentScan
auto componentScan(R storageLocator, Locator!() locator, string id)
auto componentScan(R locator, string id)
auto componentScan(R storageLocator, Locator!() locator)
auto componentScan(R locator)

Register an object into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

componentScan
auto componentScan(R storageLocator, Locator!() locator)

Register an object into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

componentScan
auto componentScan(R storageLocator, Locator!() locator)

Register module's objects into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

componentScanImpl
auto componentScanImpl(Locator!() locator)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

canFactoryGenericFactory
template canFactoryGenericFactory(alias T, Z)
template canFactoryGenericFactory(T, Z)

Checks if a structure has factory method for GenericFactory.

canFactoryInstanceFactory
template canFactoryInstanceFactory(alias T, Z, string property = "__ctor")
template canFactoryInstanceFactory(T, Z, string property = "__ctor")

Checks if a structure has factoryContainer method for InstanceFactory.

canFactoryPropertyConfigurer
template canFactoryPropertyConfigurer(alias T, Z, string property = "")
template canFactoryPropertyConfigurer(T, Z, string property = "")

Checks if a structure has factoryConfigurer method for PropertyConfigurer.

componentScan
template componentScan(T, V...)

Register an object into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

componentScan
template componentScan(I, T, V...)

Register an object into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

componentScan
template componentScan(alias M, V...)

Register module's objects into a storage contained in storageLocator and identified by @container annotation using annotations provided in it.

Meta

License

Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Authors

aermicioi