createInstanceFactory method

InstanceFactory createInstanceFactory(
  1. BeanDefinition definition
)

Implementation

InstanceFactory createInstanceFactory(BeanDefinition definition) {
  switch (definition.kind) {
    case Kind.single:
      return SingleInstanceFactory(definition);
    case Kind.factory:
      return FactoryInstanceFactory(definition);
  }
}