Interface NamedFactory<T>

    • Method Detail

      • create

        static <T> T create​(Collection<? extends NamedFactory<? extends T>> factories,
                            String name)
        Create an instance of the specified name by looking up the needed factory in the list.
        Type Parameters:
        T - type of object to create
        Parameters:
        factories - list of available factories
        name - the factory name to use
        Returns:
        a newly created object or null if the factory is not in the list