Android PagerAdapter 和所有子类中的注解注入

Android Annotation injection in PagerAdapter and all of subclasses

我在我的项目中实现了 "Android Annotation"。我想用@EBean 将引用注入 FragmentPagerAdapter class,但是@EBean 只需要一个构造函数,最多有一个上下文类型的参数。

但如您所知,PagerAdapter 及其子 classes 具有以 FragmentManager 参数作为输入的构造函数。 构建时,出现此错误:

Error:(23, 1) error: org.androidannotations.annotations.EBean annotated element should have a constructor with one parameter max, of type android.content.Context

如何在这个class中注入? (我需要注入,因为我使用了async和bean注解)

不幸的是,由于 super 构造函数,无法用 @EBean 标记 FragmentPagerAdapter