• 로그인 함 해보끄나?

  • Sarangnamu.net June 17, 2003
    Home Login Profile Study Open Project Q&A Google Code
    dagger2
    Last Modify : 30 March, 2018(04:19)
    links http://www.vogella.com/tutorials/Dagger/article.html https://google.github.io/dagger/android http://drcarter.tistory.com/169 gradle ext.dagger = '2.14.1' implementation "com.google.dagger:dagger:$dagger" implementation "com.google.dagger:dagger-android-support:$dagger" annotationProcessor "com.google.dagger:dagger-compiler:$dagger" annotationProcessor "com.google.dagger:dagger-android-processor:$dagger" @Module : module 로 구성되고 내부에 주입될 객체를 provide 해줌 @Providers : 객체 주입에 필요한 내용을 반환 @Inject : 객체 주입 @Component : Module 과 Inject 간 Bridge 역할 @Module + @Providers : mechanism for providing dependencies. @Inject : mechanism for requesting dependencies. @Component : bridge between modules and injections 요즘 이야기가 나온다고 해서 찾아보는 중.. 왜 써야 되는가? 라는 생각이 먼저 들어서 보고 있는데 일단 기술 부사장 까지 되버린 jake whatrton 에 ppt 가 도움이 많이 되는 듯 https://speakerdeck.com/jakewharton/dependency-injection-with-dagger-2-devoxx-2014 논리적이네 http://imcreator.tistory.com/106 https://antonioleiva.com/dependency-injection-android-dagger-part-1/

    Comment


    입력하3 1524694326



    Locations of visitors to this page