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

No Factory for Class with Scope Annotation and No @Inject #116

Closed
eygraber opened this issue Jun 29, 2016 · 1 comment
Closed

No Factory for Class with Scope Annotation and No @Inject #116

eygraber opened this issue Jun 29, 2016 · 1 comment

Comments

@eygraber
Copy link
Contributor

I have a class:

@ActivitySingleton
public class MapFragmentProvider implements Provider<SupportMapFragment> {
  @Override
  public SupportMapFragment get() {
    return SupportMapFragment.newInstance();
  }
}

Where ActivitySingleton is:

@Scope
@Documented
@Retention(RUNTIME)
public @interface ActivitySingleton {
}

But no Factory is being created for it unless I add an @Inject constructor.

@stephanenicolas
Copy link
Owner

This is a duplicate of #118. Thx @eygraber . I don't exactly see how we are gonna solve that, we might need some research work on it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants