Interface IMappedByNameFactory<T>

    • Method Detail

      • addMapping

        void addMapping​(String name,
                        Supplier<T> supplier)
        add name to class mapping
        Parameters:
        name -
        supplier -
      • removeMapping

        void removeMapping​(String name)
        remove name to class mapping
        Parameters:
        name -
      • newInstance

        default T newInstance​(String name)
        Parameters:
        name -
        Returns:
        new instance of T (if there are register supplier for name)