Class ProviderInjectionTargetExtension<P,​E>

  • Type Parameters:
    P - the type of the provider
    E - the type the provider provides
    All Implemented Interfaces:
    InjectionTargetExtension<P,​E>

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

      • ProviderInjectionTargetExtension

        public ProviderInjectionTargetExtension​(java.lang.Class<P> providerClass,
                                                java.util.function.Function<java.util.function.Supplier<E>,​P> 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