Class ProviderInjectionTargetExtension<T,​E>

  • Type Parameters:
    T - the type of the provider
    E - the type the provider provides

    public class ProviderInjectionTargetExtension<T,​E>
    extends InjectionTargetExtension<T,​E>
    Configurable provider InjectionTargetExtension which allows selecting the type of provider it should handle.
    • Constructor Detail

      • ProviderInjectionTargetExtension

        public ProviderInjectionTargetExtension​(java.lang.Class<T> providerClass,
                                                java.util.function.Function<java.util.function.Supplier<E>,​T> providerFactory)
        Constructs a new instance.
        Parameters:
        providerClass - a Class representing the provider type, cannot be null
        providerFactory - a function to create the provider instance given a supplier, cannot be null