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(Collection<? extends NamedFactory<? extends T>> factories,
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,
Collection<? extends E> preferred) |
static <S extends OptionalFeature,E extends NamedResource> |
setUpTransformedFactories(boolean ignoreUnsupported,
Collection<? extends S> preferred,
Function<? super S,? extends E> xform) |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
static <T> T create(Collection<? extends NamedFactory<? extends T>> factories, 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> List<E> setUpTransformedFactories(boolean ignoreUnsupported, Collection<? extends S> preferred, Function<? super S,? extends E> xform)
static <E extends NamedResource & OptionalFeature> List<E> setUpBuiltinFactories(boolean ignoreUnsupported, Collection<? extends E> preferred)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.