Using Dagger 2 to inject into service
<p>I have an app which is basically a service that runs all the time and alarms the user when something happens.</p>

<p>When the service creates the alarm, it needs to give it his <code>context</code> so that the alarm can do <strong>callbacks</strong> to the service when something happens.</p>

<p>For example:</p>

<pre><code>public MyService extends Service{
    private SomeAlarm alarm;

    @Override
    public void onCreate() {
        super.onCreate();
        alarm = new SomeAlarm(MyService.this);
    }
}
</code></pre>

<p>How can I inject the <code>SomeAlarm</code> class into the service, and give the <code>SomeAlarm</code> the service context as a variable?</p>