code: public static <T> void defineDependency(Class<T> clazz, T dependency) {
          defineDependency(clazz, null, dependency);
      }
docs: Adds a direct mapping between a type and an object.
  
  @param clazz      Class type which should be injected.
  @param dependency Dependency reference which should be copied to injection targets.