Skip to content

Instantly share code, notes, and snippets.

@duynhm
Last active December 27, 2018 03:47
Show Gist options
  • Save duynhm/a718eb9974207c7a8a202f4bac6343ea to your computer and use it in GitHub Desktop.
Save duynhm/a718eb9974207c7a8a202f4bac6343ea to your computer and use it in GitHub Desktop.
Code minh họa cho bài viết Dagger 2 — Part 1 — Các Annotation trong dagger 2
public @interface Component {
Class<?>[] modules() default {};
Class<?>[] dependencies() default {};
}
public @interface Subcomponent {
Class<?>[] modules() default {};
}
public @interface Module {
Class<?>[] includes() default {};
}
public @interface Provides {
}
public @interface MapKey {
boolean unwrapValue() default true;
}
public interface Lazy<T> {
T get();
}
public @interface Inject {
}
public @interface Scope {
}
public @interface Qualifier {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment