FactoryMethodContainerAdder.scan

Scan T's methods, for methods annotated with @component annotation, transform them into component factories that will use them to create components of returned type.

struct FactoryMethodContainerAdder(ByTypeComponentStoringPolicy = ComponentStoringPolicyImpl, ByMethodComponentStoringPolicy = ComponentStoringPolicy!(ChainedIdentityResolverPolicy!(QualifiedAnnotationIdentityResolverPolicy, IdentifierBasedIdentityResolverPolicy), StorageLocatorPolicyImpl, AliasingPolicyImpl), ByTypeAliasingPolicy = TypeAliasingPolicy)
static
void
scan
()
if (
isComponentStoringPolicy!ByTypeComponentStoringPolicy &&
isComponentStoringPolicy!ByMethodComponentStoringPolicy
&&
isAliasingPolicy!ByTypeAliasingPolicy
)

Parameters

T

type to be scanned

locator Locator!()

locator of components used by component factories

storage Storage!(ObjectFactory, string)

storage which will contain component factories

Meta