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 <E extends NamedResource & OptionalFeature> |
setUpBuiltinFactories(boolean ignoreUnsupported,
java.util.Collection<? extends E> preferred) |
static <S extends OptionalFeature,E extends NamedResource> |
setUpTransformedFactories(boolean ignoreUnsupported,
java.util.Collection<? extends S> preferred,
java.util.function.Function<? super S,? extends E> xform) |
findByName, getName, getNameList, getNames, ofName, 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,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)
static <E extends NamedResource & OptionalFeature> java.util.List<E> setUpBuiltinFactories(boolean ignoreUnsupported, java.util.Collection<? extends E> preferred)