Class InjectionTargetExtensionStore

    • Constructor Detail

      • InjectionTargetExtensionStore

        public InjectionTargetExtensionStore​(java.util.Collection<InjectionTargetExtension<?,​?>> extensions)
        Constructs a new instance.
        Parameters:
        extensions - a collection of InjectionTargetExtensions, cannot be null but can be empty
    • Method Detail

      • getExtension

        public <T,​E> InjectionTargetExtension<T,​E> getExtension​(java.lang.reflect.Type type)
        Gets the InjectionTargetExtension which handles the given Type. Returns null when no extension was configured for the given type.
        Type Parameters:
        T - the type handled by the extension
        E - the element type handled by the extension
        Parameters:
        type - a Type, cannot be null
        Returns:
        an InjectionTargetExtension, can be null