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.Class<T> cls)
        Gets the InjectionTargetExtension which handles the given Class. A default extension is returned for any targets that were not specifically configured.
        Type Parameters:
        T - the type handled by the extension
        E - the element type handled by the extension
        Parameters:
        cls - a Class, cannot be null
        Returns:
        an InjectionTargetExtension, never null