saveDefinition method
Implementation
void saveDefinition(BeanDefinition definition) {
InstanceFactory instanceFactory = createInstanceFactory(definition);
_saveInstance(generateKey(definition.primaryType, definition.qualifier),
instanceFactory);
}