Last active
December 27, 2018 03:47
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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