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