Module dagger

Interface Factory<T>

  • All Superinterfaces:
    jakarta.inject.Provider<T>
    All Known Implementing Classes:
    DelegateFactory, InstanceFactory, MapFactory, MapProviderFactory, SetFactory

    public interface Factory<T>
    extends jakarta.inject.Provider<T>
    An unscoped Provider. While a Provider may apply scoping semantics while providing an instance, a factory implementation is guaranteed to exercise the binding logic (Inject constructors, Provides methods) upon each call to Provider.get().

    Note that while subsequent calls to Provider.get() will create new instances for bindings such as those created by Inject constructors, a new instance is not guaranteed by all bindings. For example, Provides methods may be implemented in ways that return the same instance for each call.

    • Method Summary

      • Methods inherited from interface jakarta.inject.Provider

        get