Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InfoDao_Impl #1

Open
bxxasn opened this issue May 17, 2018 · 0 comments
Open

InfoDao_Impl #1

bxxasn opened this issue May 17, 2018 · 0 comments

Comments

@bxxasn
Copy link

bxxasn commented May 17, 2018

InfoDao_Impl 这个类没有提交。

package com.example.qingchen.vrmr.mainactivity.module;

import com.example.qingchen.vrmr.DataBase.InfoDao;
import com.example.qingchen.vrmr.DataBase.InfoDao_Impl;
import com.example.qingchen.vrmr.DataBase.InfoDataBase;
import com.example.qingchen.vrmr.MyApplication;

import javax.inject.Named;

import dagger.Module;
import dagger.Provides;

/**

  • @author qingchen
  • @Date 17-11-12
    */
    @module
    public class InfoModule {
    @provides
    @nAmed("InfoDao")
    InfoDao provideInfoDao(){
    return new InfoDao_Impl(InfoDataBase.getInstance(MyApplication.getContext()));
    }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant