public static final class NamedFactory.Utils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
create(Collection<? extends NamedFactory<T>> factories,
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,
Collection<? extends E> preferred) |
static <S extends OptionalFeature,T,E extends NamedFactory<T>> |
setUpTransformedFactories(boolean ignoreUnsupported,
Collection<? extends S> preferred,
Transformer<? super S,? extends E> xform) |
public static <T> T create(Collection<? extends NamedFactory<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 listpublic static <S extends OptionalFeature,T,E extends NamedFactory<T>> List<NamedFactory<T>> setUpTransformedFactories(boolean ignoreUnsupported, Collection<? extends S> preferred, Transformer<? super S,? extends E> xform)
public static <T,E extends NamedFactory<T> & OptionalFeature> List<NamedFactory<T>> setUpBuiltinFactories(boolean ignoreUnsupported, Collection<? extends E> preferred)
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.