Interface NamedFactory<T>

    • Method Detail

      • create

        static <T> T create​(java.util.Collection<? extends NamedFactory<? extends T>> factories,
                            java.lang.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
      • setUpTransformedFactories

        static <S extends OptionalFeature,​E extends NamedResource> java.util.List<E> setUpTransformedFactories​(boolean ignoreUnsupported,
                                                                                                                     java.util.Collection<? extends S> preferred,
                                                                                                                     java.util.function.Function<? super S,​? extends E> xform)
      • setUpBuiltinFactories

        static <E extends NamedResource & OptionalFeature> java.util.List<E> setUpBuiltinFactories​(boolean ignoreUnsupported,
                                                                                                   java.util.Collection<? extends E> preferred)