@Target({METHOD,FIELD,TYPE}) @Retention(RUNTIME) @Documented @MapKey public @interface LazyClassKey
MapKey
Class<?>
The difference from ClassKey is that dagger generates a string representation for the class to use under the hood, which prevents loading unused classes at runtime.
ClassKey
java.lang.Class<?>
value
java.lang.Class<?> value