Back to project page material-notes.
The source code is released under:
Apache License
If you think the Android project material-notes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.materialnotes.config; /* w w w . j a v a2s . c o m*/ import android.app.Application; import android.database.sqlite.SQLiteOpenHelper; import com.google.inject.AbstractModule; import com.google.inject.name.Names; import com.materialnotes.data.source.sqlite.NotesDatabaseHelper; /** * Clase para cablear dependencias de la aplicacin * * @author Daniel Pedraza Arcega */ public class ConfigModule extends AbstractModule { private final Application context; public ConfigModule(Application context) { this.context = context; } /** Cablea las implementaciones. */ @Override protected void configure() { bind(SQLiteOpenHelper.class) .annotatedWith(Names.named("NotesDbHelper")) .toInstance(new NotesDatabaseHelper(context)); } }