factory<T> method
Implementation
BeanDefinition<T> factory<T>(Definition<T> definition,
{Qualifier? qualifier}) {
final BeanDefinition<T> def =
Definitions.createFactory(scopeQualifier, qualifier, definition);
definitions.add(def);
return def;
}