本文整理匯總了Java中dagger.android.AndroidInjector.Factory方法的典型用法代碼示例。如果您正苦於以下問題:Java AndroidInjector.Factory方法的具體用法?Java AndroidInjector.Factory怎麽用?Java AndroidInjector.Factory使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dagger.android.AndroidInjector
的用法示例。
在下文中一共展示了AndroidInjector.Factory方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: get
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Override
public AndroidInjector<T> get(T instance) {
//noinspection SuspiciousMethodCalls
Provider<AndroidInjector.Factory<? extends T>> factoryProvider = injectorFactories.get(instance.getClass());
if (factoryProvider == null) {
throw new IllegalArgumentException("No injector available for " + instance);
}
@SuppressWarnings("unchecked")
AndroidInjector.Factory<T> factory = (AndroidInjector.Factory<T>) factoryProvider.get();
return checkNotNull(
factory.create(instance),
"%s.create(I) should not return null.",
factory.getClass().getCanonicalName());
}
示例2: counting
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@FragmentKey(CountingFragment.class)
abstract AndroidInjector.Factory<? extends Fragment> counting(CountingComponent.Builder impl);
示例3: mainActivity
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends android.app.Activity> mainActivity(MainComponent.Builder impl);
示例4: bindHomeControllerInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds @IntoMap @ControllerKey(MainController.class)
abstract AndroidInjector.Factory<? extends Controller> bindHomeControllerInjectorFactory(MainComponent.Builder builder);
示例5: mainActivityInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> mainActivityInjectorFactory(final ComponentMainActivity.Builder pBuilder);
示例6: debugActivityInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(DebugActivity.class)
abstract AndroidInjector.Factory<? extends Activity> debugActivityInjectorFactory(final ComponentDebugActivity.Builder pBuilder);
示例7: fragmentSecondInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@FragmentKey(FragmentSecond.class)
abstract AndroidInjector.Factory<? extends Fragment> fragmentSecondInjectorFactory(final ComponentFragmentSecond.Builder pBuilder);
示例8: bindMainActivityInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindMainActivityInjectorFactory(AppComponent.MainActivitySubcomponent.Builder builder);
示例9: bindArtistActivityInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(ArtistActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindArtistActivityInjectorFactory(AppComponent.ArtistActivitySubcomponent.Builder builder);
示例10: bindMainActivityInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
public abstract AndroidInjector.Factory<? extends Activity>
bindMainActivityInjectorFactory(MainActivitySubComponent.Builder builder);
示例11: bindAndroidInjectorFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(LoginActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindAndroidInjectorFactory(
LoginActivitySubcomponent.Builder builder);
示例12: providerQuestionFragmentFactory
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@FragmentKey(QuestionFragment.class)
abstract AndroidInjector.Factory<? extends Fragment> providerQuestionFragmentFactory(QFComponent.Builder builder);
示例13: buildMainActivity
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> buildMainActivity(MainActivityComponent.Builder builder);
示例14: buildWebViewActivity
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(WebViewActivity.class)
abstract AndroidInjector.Factory<? extends Activity> buildWebViewActivity(WebViewActivityComponent.Builder builder);
示例15: bindMainActivity
import dagger.android.AndroidInjector; //導入方法依賴的package包/類
@Binds
@IntoMap
@ActivityKey(MainActivity.class)
abstract AndroidInjector.Factory<? extends Activity> bindMainActivity(MainActivityComponent.Builder builder);