name

public final Unit name(String name)

Parameters

name

a string which is used as a key for the given dependency this is useful when you have two or more dependencies of the same type


public final Unit name(Function1<FactoryBuilder, String> block)

this function takes a lambda with string as a return type this string is used as a key for the given dependency this is useful when you have two or more dependencies of the same type