原创 Dagger2 進階 (三)

Scope(作用域) @Scope @Documented @Retention(RUNTIME) public @interface Singleton{} 可以看到定義一個Scope註解,必須添加以下三部分: @Scope :註明