タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

daggerに関するnaoty_kのブックマーク (4)

  • Tasting Dagger 2 on Android.

    Dependency Injection (DI) is probably one of the most fundamental functionalities every software project should have. In this ocassion, we will see how Dagger 2 can help us and what is the logic behind its usage, in order to achieve objects injection in Android (OOP). “Software Engineering and Architecture is about evolution.” IntroductionWhy dependency injection?What is JSR-330?Dagger 1Dagger 2Di

    Tasting Dagger 2 on Android.
  • DIの考え方とandroidアプリでのサンプル(Dagger) - k4zy no blog

    DI(Dependency Injection)について たまにDI不要論とかがネットで話題になったりしてて,ふわっとDIの考え方は知ってたんだけど実際にDIパターンみたいな実装をしたことなかったのでちょっと触ってみた. DIとは 日語だと依存性注入みたいな小難しい訳になってしまうんだけど,概念自体は難しくはないと思う. よく車の例で紹介されてて,例えば車クラスには( Aエンジンオブジェクト と Aタイヤオブジェクト )を属性に持ってるとする この車クラスのエンジン部分をBエンジンオブジェクトにごっそり切り替えようとした場合に車クラスにはAエンジンに依存した実装があるので置き換えるのが大変だ!! という問題が発生する public class Car{ public A_Engine aEngine; public A_Tire aTire; public go(){ aEngine.s

    DIの考え方とandroidアプリでのサンプル(Dagger) - k4zy no blog
  • Dagger † Android・Java 対応の高速依存性注入フレームワーク

    注意 語訳は、Dagger ユーザガイドの 2013-03-27 時点 からの非公式な翻訳です。最新および正確な情報については、オリジナルのユーザガイドを参照してください。 イントロダクション アプリケーションで最良のクラスとは、何かを実行するクラスです。 たとえば、バーコード読み取りクラス BarcodeDecoder 、 Koopa 物理エンジンクラス KoopaPhysicsEngine、 音楽ストリーミングクラス AudioStreamerといった類です。こういったクラスは別のクラスへの依存性を持ちます(バーコードカメラファインダクラス BarcodeCameraFinder、 デフォルトの物理エンジンクラス DefaultPhysicsEngine、 HTTPストリーミングクラス HttpStreamer 等々)。 一方で、アプリケーションで最悪のクラスとは、ほとんど何もし

  • Dagger

    Dagger is a fully static, compile-time dependency injection framework for Java, Kotlin, and Android. It is an adaptation of an earlier version created by Square and now maintained by Google. The latest Dagger release is: Dagger 2.50 Dagger aims to address many of the development and performance issues that have plagued reflection-based solutions. More details can be found in this talk (slides) by

  • 1