-
- 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 unscopedProvider. While aProvidermay apply scoping semantics while providing an instance, a factory implementation is guaranteed to exercise the binding logic (Injectconstructors,Providesmethods) upon each call toProvider.get().Note that while subsequent calls to
Provider.get()will create new instances for bindings such as those created byInjectconstructors, a new instance is not guaranteed by all bindings. For example,Providesmethods may be implemented in ways that return the same instance for each call.