addSingleByCreator<T> method

void addSingleByCreator<T>(
  1. Creator<T> objectCreator
)

Adds singleton InjectFactory with objectCreator function

Implementation

void addSingleByCreator<T>(Creator<T> objectCreator) {
  injectMap[T] = CreatorSingleInjectFactory<T>(objectCreator);
}