T
- The create object instance typepublic interface NamedFactory<T> extends Factory<T>, NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
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.
|
static <T,E extends NamedFactory<T> & OptionalFeature> |
setUpBuiltinFactories(boolean ignoreUnsupported,
java.util.Collection<? extends E> preferred) |
static <S extends OptionalFeature,T,E extends NamedFactory<T>> |
setUpTransformedFactories(boolean ignoreUnsupported,
java.util.Collection<? extends S> preferred,
java.util.function.Function<? super S,? extends E> xform) |
findByName, getName, getNameList, getNames, removeByName
static <T> T create(java.util.Collection<? extends NamedFactory<? extends T>> factories, java.lang.String name)
T
- type of object to createfactories
- list of available factoriesname
- the factory name to usenull
if the factory is not in the liststatic <S extends OptionalFeature,T,E extends NamedFactory<T>> java.util.List<NamedFactory<T>> setUpTransformedFactories(boolean ignoreUnsupported, java.util.Collection<? extends S> preferred, java.util.function.Function<? super S,? extends E> xform)
static <T,E extends NamedFactory<T> & OptionalFeature> java.util.List<NamedFactory<T>> setUpBuiltinFactories(boolean ignoreUnsupported, java.util.Collection<? extends E> preferred)